StopWatch A Basic StopWatch using JavaScript setInterval() function. Steps to Run: Run the HTML file on your local machine , you will see the below picture Press the Lap Button Press Stop Button and press lap again, and finally see the results.