SyntaxError: missing ; after for-loop initializer
<p>showing errors like missing ; after for-loop. Thanks for helping.</p>

<pre><code> function checkAttempt(){
        var studentID = document.getElementById("studentID").value;
        var attempt = 0;

        for (attempt &lt; 3 &amp;&amp; studentID == localStorage.studentID){
            gradeTest;
            attempt = attempt + 1;
            localStorage.attempt = attempt;
            }       
        }
</code></pre>