Skip to content

Commit 1dd1e64

Browse files
interpreted the error of the 1.js file
1 parent c4bb72c commit 1dd1e64

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

  • Sprint-2/2-mandatory-errors

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

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

33
let age = 33;
44
age = age + 1;
5+
6+
/*
7+
The error thrown was a TypeError indicating assignment to constant variable and this happen when
8+
we declare a variable with const and try to give it a new value
9+
10+
*/

0 commit comments

Comments
 (0)