Skip to content

Commit 0c3a7bf

Browse files
committed
interpreted TypeError in 1.js file
1 parent 0aceeed commit 0c3a7bf

File tree

1 file changed

+4
-0
lines changed
  • Sprint-1/2-mandatory-errors

1 file changed

+4
-0
lines changed

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

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

33
const age = 33;
44
age = age + 1;
5+
6+
//TypeError: Assignment to constant variable.
7+
//what went wrong
8+
//The program is trying to reassign a constant variable. In javascript a constant once assigned cannot be reassigned another value

0 commit comments

Comments
 (0)