title: Don't understand this error in javascript within my html file: ',' expected.javascript
body: <p>I apologize for the silly request, but I am brand new to HTML and JavaScript and am trying to self-teach. My code right now is based off a resource I found that teaches you how to make a timer. My only question is, why does line 16 (var seconds...) come up with the error in the title, specifically with the red line under &quot;var&quot;?
  Thank you in advance.
  Code:</p>
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang=&quot;en&quot;&gt;
  &lt;head&gt;
  &lt;meta charset=&quot;UTF-8&quot;&gt;
  &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;
  &lt;title&gt;Document&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;p id=&quot;demo&quot;&gt;&lt;/p&gt;
  
  &lt;script&gt;
  var x = setInterval(function() {
      var timer = 600;
      var minutes = Math.floor(timer // 60);
      var seconds = Math.floor(timer % 60);
      document.getElementById(&quot;demo&quot;).innerHTML = minutes + &quot;minutes and &quot; + seconds + &quot;seconds&quot;;
      if (timer &lt; 0) {
      clearInterval(x);
      document.getElementById(&quot;demo&quot;).innerHTML = &quot;EXPIRED&quot;
  }
      }, 1000);
  &lt;/script&gt;
      &lt;/h2&gt;
      &lt;a href=&quot;html/contact.html&quot;&gt;Contact Information&lt;/a&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>