Skip to content

Commit a0b416f

Browse files
committed
fixed error in the problem
1 parent 8e1e5ad commit a0b416f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • Sprint-1/2-mandatory-errors

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

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

32
const age = 33;
43
age = age + 1;
4+
5+
// There is a constant variable age, which is fixed and it's value cannot be reassigned.
6+
// If we want to change the value of age, we have to use let instead of const.

0 commit comments

Comments
 (0)