Skip to content

Commit 3a4947c

Browse files
committed
updated the variable to be able to reassign the value
1 parent eac1ebb commit 3a4947c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • Sprint-1/2-mandatory-errors

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

Lines changed: 2 additions & 1 deletion
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;
3+
let age = 33;
44
age = age + 1;
5+
// const variable cannot reassign the value - we need to use let

0 commit comments

Comments
 (0)