Skip to content

Commit 88e0415

Browse files
committed
answered mandatory error 1.js
1 parent 444c0fa commit 88e0415

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • Sprint-2/2-mandatory-errors

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,8 @@
22

33
const age = 33;
44
age = age + 1;
5+
6+
console.log(age)
7+
8+
The error is "Assignment to constant variable." Constant value could not be alternated.
9+
if line 3 const changed to let the code could be executed.

0 commit comments

Comments
 (0)