Skip to content

Commit 204a98d

Browse files
committed
Change keyword 'const' to 'let' to assign variable
1 parent 92d1f33 commit 204a98d

File tree

1 file changed

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

1 file changed

+5
-1
lines changed

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

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

3-
const age = 33;
3+
// change keyword 'const' to 'let'
4+
let age = 33;
45
age = age + 1;
6+
7+
console.log(age);
8+

0 commit comments

Comments
 (0)