Skip to content

Commit

Permalink
Update script_cronometro.js
Browse files Browse the repository at this point in the history
  • Loading branch information
consuelomilagros authored Nov 28, 2024
1 parent 3c0102c commit 138cb05
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions script_cronometro.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ startButton.addEventListener('click', () => {
});

stopButton.addEventListener('click', () => {
clearInterval(timer);
isRunning = false;
clearInterval(timer);
isRunning = false;
});

resetButton.addEventListener('click', () => {
clearInterval(timer);
isRunning = false;
seconds = 0;
timerDisplay.textContent = "00:00:00";
});
clearInterval(timer);
isRunning = false;
seconds = 0;
timerDisplay.textContent = "00:00:00";
});

0 comments on commit 138cb05

Please sign in to comment.