Skip to content

Commit 0a27532

Browse files
committed
mandatory error-2 fix
1 parent e0e0e10 commit 0a27532

File tree

1 file changed

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

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
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+
// to reassign the value of age by 1 we need to use let instead of const
7+
8+
console.log(age);
9+

0 commit comments

Comments
 (0)