Function not defined/ not working <p>I'm making a quiz, and I was just trying to check if the submit button was working. It isn't here is the code. What did I do wrong?</p> <p>HtmL</p> <pre><code>&lt;button type="button" onClick="checkAllAnswers" id="checkAllAnswers"&gt;button&lt;/button&gt; </code></pre> <p>JS</p> <pre><code>function checkAllAnswers(){ var thingtocheck = 5; if (thingtocheck === 5){ alert("Check button is working"); } </code></pre> <p>Seems right to me...</p>