Skip to content

Commit 8665943

Browse files
change const to let Sprint-1/2-mandatory-errors/1.js
1 parent 3bb0a7c commit 8665943

File tree

1 file changed

+3
-1
lines changed
  • Sprint-1/2-mandatory-errors

1 file changed

+3
-1
lines changed

Sprint-1/2-mandatory-errors/1.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
// trying to create an age variable and then reassign the value by 1
22

33
//create variable age
4-
const age = 33;
4+
let age = 33;
55

66
//reassign variable age by 1 (+1)
77
age = age + 1;
8+
9+
console.assert(age); //Oh no.. that is mr. const

0 commit comments

Comments
 (0)