Skip to content

Commit 00f676d

Browse files
authored
Correct function's name
1 parent 7a7fe1c commit 00f676d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/asynchronous/loops-and-intervals/setinterval-stopwatch.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
const stopBtn = document.querySelector('.stop');
4545
const resetBtn = document.querySelector('.reset');
4646

47-
// When the start button is pressed, start running displayCount() once per second using displayInterval()
47+
// When the start button is pressed, start running displayCount() once per second using setInterval()
4848
startBtn.addEventListener('click', () => {
4949
stopWatch = setInterval(displayCount, 1000);
5050
startBtn.disabled = true;

0 commit comments

Comments
 (0)