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.
2 parents 4b340bd + 6044bb4 commit bd6e808Copy full SHA for bd6e808
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