Skip to content

Commit a4c0b5f

Browse files
mandatory error exercise solution 1
1 parent 72bce3d commit a4c0b5f

File tree

1 file changed

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

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
// trying to create an age variable and then reassign the value by 1
2-
32
const age = 33;
43
age = age + 1;
4+
5+
// instead of const, we should use let because it means that the variable can change
6+
7+
let age = 33;
8+
age = age + 1;

0 commit comments

Comments
 (0)