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 783db28 commit 5f6d870Copy full SHA for 5f6d870
1 file changed
Sprint-1/2-mandatory-errors/1.js
@@ -5,4 +5,5 @@ age = age + 1;
5
6
//The error message displayed by Node.js is:
7
//Uncaught TypeError: Assignment to constant variable
8
-//The error happens because const creates a variable whose value cannot be reassigned.
+//The error happens because const creates a variable whose value cannot be reassigned.
9
+//To allow the value to change, the variable should be declared with let instead of const.
0 commit comments