There was an error while loading. Please reload this page.
1 parent cf5f0dc commit a50c7a7Copy full SHA for a50c7a7
1 file changed
Sprint-2/2-mandatory-errors/1.js
@@ -2,3 +2,11 @@
2
3
const age = 33;
4
age = age + 1;
5
+
6
+// this gives a TypeError
7
+// age is already a const at the start and calling it again just as age wont work, naming it like "older" would work better:
8
9
+// const age = 33;
10
+// let older = (age + 1);
11
+// console.log(older)
12
0 commit comments