Skip to content

Commit 4793b3d

Browse files
authored
changed 'const'with 'let' and update line 4
1 parent ca4da7c commit 4793b3d

File tree

1 file changed

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

1 file changed

+3
-2
lines changed

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

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

3-
const age = 33;
4-
age = age + 1;
3+
let age = 30; // Change const to let to allow reassignment
4+
age += 1; // Increment age by 1
5+
console.log(age);

0 commit comments

Comments
 (0)