Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
changed pause to stop
  • Loading branch information
kmr18006 committed Mar 28, 2024
1 parent d0e6484 commit 346fdc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions week-10/index.html
Expand Up @@ -33,7 +33,7 @@
btn.addEventListener('click', function() {
if (btn.innerText === "Start") {
timer = setInterval(updateStopwatch, 1000);
btn.innerText = "Pause";
btn.innerText = "Stop";

} else {
clearInterval(timer);
Expand All @@ -47,7 +47,7 @@
minutes = 0;
displayTime();

if (btn.innerText === "Pause") {
if (btn.innerText === "Stop") {
btn.innerText = "Start";

}
Expand Down

0 comments on commit 346fdc5

Please sign in to comment.