We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a7fe1c commit 00f676dCopy full SHA for 00f676d
javascript/asynchronous/loops-and-intervals/setinterval-stopwatch.html
@@ -44,7 +44,7 @@
44
const stopBtn = document.querySelector('.stop');
45
const resetBtn = document.querySelector('.reset');
46
47
- // When the start button is pressed, start running displayCount() once per second using displayInterval()
+ // When the start button is pressed, start running displayCount() once per second using setInterval()
48
startBtn.addEventListener('click', () => {
49
stopWatch = setInterval(displayCount, 1000);
50
startBtn.disabled = true;
0 commit comments