Skip to content

Commit 56bebf5

Browse files
committed
changethe declaration const to let
1 parent b20c858 commit 56bebf5

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • Sprint-2/2-mandatory-errors

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

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

3-
const age = 33;
3+
let age = 33;
44
age = age + 1;
5-
// you can not reassign a value to variable that is declared const.
5+
// you can not reassign a value to variable that is declared const.
6+
console.log(age);

0 commit comments

Comments
 (0)