There was an error while loading. Please reload this page.
1 parent c2075ba commit 2d3769cCopy full SHA for 2d3769c
1 file changed
Sprint-2/2-mandatory-errors/1.js
@@ -1,5 +1,5 @@
1
// trying to create an age variable and then reassign the value by 1
2
-
+// the vatriable age was declared as a const variable and trying to assigne another value caused a TypeError: Assignment to constant variable.
3
let age = 33;
4
age = age + 1;
5
console.log(age)
0 commit comments