Skip to content

Commit 5e31d7c

Browse files
authored
Update 1.js
Updated age variable to let to allow incrementing its value
1 parent 2f17199 commit 5e31d7c

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// trying to create an age variable and then reassign the value by 1
2+
// Changed age declaration from const to let to allow reassignment
23

3-
const age = 33;
4+
let age = 33;
45
age = age + 1;

0 commit comments

Comments
 (0)