We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4610def commit 145e443Copy full SHA for 145e443
Sprint-1/2-mandatory-errors/1.js
@@ -2,3 +2,17 @@
2
3
const age = 33;
4
age = age + 1;
5
+
6
+//TypeError: Assignment to constant variable.
7
+// here we already have a variable constant age=33, now we are trying to reassign the variable constant.
8
9
+// to enable this work, we can say;
10
+let age = 33;
11
+age = age + 1;
12
13
+console.log(age); //34
14
+//this will be a way to fix error.
15
16
17
18
0 commit comments