Skip to content

Commit 570b271

Browse files
committed
manatory errors fix
1 parent 6c105ea commit 570b271

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • Sprint-2/2-mandatory-errors

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@
55

66
let age = 33;
77
age = age + 1;
8+
9+
// TypeError: Assignment to constant variable.
10+
// It happens because age is a const, and a const cannot be given a new value.

0 commit comments

Comments
 (0)