Skip to content

Commit c3c3993

Browse files
Declare timerInterval with let for block scope
1 parent 457ae35 commit c3c3993

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Sprint-3/alarmclock/alarmclock.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
timerInterval = null;
1+
let timerInterval = null;
22
function setAlarm() {
33
// 1. Get the input from the user
44
const inputField = document.getElementById("alarmSet");

0 commit comments

Comments
 (0)