Skip to content

Commit e014f8c

Browse files
committed
Changed age variable to let in 1.js
1 parent 8140310 commit e014f8c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • Sprint-2/2-mandatory-errors

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

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

3-
const age = 33;
3+
let age = 33;
44
age = age + 1;
5+
6+
// Answer: I changed the const to let, so the variable age becomes reassignable

0 commit comments

Comments
 (0)