Menu
Coddy logo textTech

Reset

Lesson 10 of 10 in Coddy's Stopwatch - HTML/CSS/JS Project course.

challenge icon

Challenge

Easy

Let's add the last part - the reset button.

Once the reset button is clicked, it should:

  • stop the interval (if exists)
  • reset the text time to 00:00:00
  • change the start/stop button text to Start

Try it yourself

<!DOCTYPE html>
<html>
<head>
    <link rel="stylesheet" href="styles.css">
</head>
    <body>
        <!-- Write HTML code here -->
        <script src="script.js"></script>
    </body>
</html>

All lessons in Stopwatch - HTML/CSS/JS Project