There was an error while loading. Please reload this page.
1 parent 7002d6b commit 8b85d0fCopy full SHA for 8b85d0f
1 file changed
Sprint-2/2-mandatory-errors/1.js
@@ -3,4 +3,6 @@
3
let age = 33;
4
age = age + 1;
5
6
-// Answer: I changed the const to let, so the variable age becomes reassignable
+// Answer: I got the error message TypeError: Assignment to constant variable.
7
+// That is because age was declared using const, which makes it non-reassignable.
8
+// I changed the const to let, so the variable age becomes reassignable
0 commit comments