title: Cannot read property 'toFixed' of undefined. Uncaught TypeError
body: <p>I'm trying to understand why my code block doesn't work. I am using JQuery as well as vanilla JS.</p>
  
  <p>Here's my code.</p>
  
  <pre class="lang-js prettyprint-override"><code> // update every 1 second on time.
    setInterval(function() {
      // get current time and duration of entire video
      let getTimePaused = video.currentTime;
      let vidTime = getTimePaused.toFixed(0);
      let formatTime = minTommss(vidTime);
      $(".timeLeft").text(
        minTommss(vidTime / 60) + " - " + minTommss((video.duration / 60) + 0.01)
      );
    }, 1000);
  </code></pre>
  
  <p>Any help is much appreciated.</p>
  
  <p>Thanks!</p>