Skip to content

Commit ee6445d

Browse files
committed
fix error in 1.js
1 parent 7f1feef commit ee6445d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • Sprint-2/2-mandatory-errors

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

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

3-
const age = 33;
3+
/*const makes the variable fixed, so age cannot be changed. to reassign the value
4+
I need to change const to let.
5+
*/
6+
let age = 33;
47
age = age + 1;

0 commit comments

Comments
 (0)