title: How to create a simple JavaScript timer?
body: <p>So, basically I am trying to create a simple JS timer that will start at 00:30, and go all the way to 00:00, and then disappear. </p>
  
  <p>I already have the HTML code : </p>
  
  <pre><code>&lt;div id="safeTimer"&gt;
  &lt;h2&gt;Safe Timer&lt;/h2&gt;
  &lt;p id="safeTimerDisplay"&gt;00:30&lt;/p&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>The element that will display the timer is obviously the paragraph. Now I know that this would be pretty easy to do if I did it the hard-coded way : I would just make a function that will change the paragraph's innerHTML ("00:30", "00:29", "00:28", etc), and then call it every second using <strong>setInterval()</strong></p>
  
  <p>How would I do it the easy (not hard-coded) way? </p>