Skip to content

Commit 658e7a7

Browse files
committed
Changed the reassignment from const to let to print the result
1 parent 20bd1ee commit 658e7a7

File tree

1 file changed

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

1 file changed

+3
-1
lines changed

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 @@
11
// trying to create an age variable and then reassign the value by 1
22

3-
const age = 33;
3+
// let allows reassignment whereas const does not
4+
let age = 33;
45
age = age + 1;
6+
console.log(age);

0 commit comments

Comments
 (0)