Skip to content

Commit 915b09f

Browse files
committed
explain TypeError on line 4 in sprint 2 error 1
1 parent 1794dd4 commit 915b09f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • Sprint-2/2-mandatory-errors

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
const age = 33;
44
age = age + 1;
55

6-
console.log(age);
6+
// there is a TypeError: Assignment to constant variable,
7+
// that tells us that changing a const is not allowed

0 commit comments

Comments
 (0)