Calling a nested function with onclick()
<p>I have two buttons: <code>&lt;button onclick="check()"&gt;Check&lt;/button&gt;</code> and <code>&lt;button onclick="newGame()"&gt;New&lt;/button&gt;</code>.  I want to run the <strong>check</strong> function only after the <strong>New</strong> button has been clicked, so I am nesting it inside the <strong>newGame</strong> function. </p>

<p>My question is, how can I call the <strong>check</strong> function when I click the corresponding button? I do not want to execute it in one continuous flow.</p>
