title: Video Playback Time not displaying
body: <p>i am unable to get my video playback time to work i will list my code below, any help please? I tried using the code i entered below but i get "00:NaN" when i play the video. Here is my HTML below.</p>
  
  <pre><code>&lt;html&gt;
  
  &lt;body&gt;
  
  &lt;div id="VideoControls"&gt;
  &lt;button type="button" id="PlayPause" &gt;Play&lt;/button&gt;
  &lt;button type="button" id="MuteUnmute" &gt;Mute&lt;/button&gt;
  &lt;p id="vidTime"&gt;&lt;/p&gt; &lt;input type="range" id ="seekBar" min=0 max=100 step=1 value=0&gt; 
  &lt;p&gt;5&lt;/p&gt;&lt;input type="range" id="volControl" min=0 max=1 step=0.1 value=0.5&gt;
  &lt;p id="curtime"&gt;&lt;/p&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Here is the JavaScript below</p>
  
  <pre><code>document.addEventListener('DOMContentLoaded', initialiseWebPage);
  
  
  function initialiseWebPage()
  {       
  const curtime = document.getElementById ("curtime");
  myVideo.addEventListener ("timeupdate",displayVideoTime );  
  }       
  
   function displayVideoTime()
   {
      let minutes = Math.floor(myVideo.currentTime / 60);
      let seconds = Math.floor(myVideo.current % 60);
      if(minutes &lt; 10)
      {
          minutes="0"+minutes;
      }
      if(seconds&lt;10)
      {
          seconds="0"+seconds;
      }
        curtime.innerHTML = minutes+":"+seconds;      
   }
  
  }
  </code></pre>