Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
JavaScript Tutorial - Timers - Making a Stopwatch
Play lesson

HTML, CSS, and JavaScript in Netbeans - JavaScript Tutorial - Timers - Making a Stopwatch

4.0 (1)
8 learners

What you'll learn

This course includes

  • 6 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

Learn how to use JavaScript Timers (setInterval) to make a stopwatch with start, pause and reset buttons. Note: The variable divide just tells the program where to show the decimal. If you want to speed up the timer, you have to decrease the interval in the variable timer (it's set to 1000 in the video) The reset() function should be changed to: function reset(){ clearInterval(timer); timer = null; i = 0; document.getElementById("timer_out").innerHTML = (i / divide); }

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere