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 172ac8f commit 2515a68Copy full SHA for 2515a68
Sprint-1/2-mandatory-errors/1.js
@@ -2,7 +2,10 @@
2
3
const age = 33;
4
age = age + 1;
5
-in this code we are trying to reassign the value of age variable by adding 1 to ImageTrack.
+in this code we are trying to reassign the value of age variable by adding 1 to ageTrack.
6
However, this will result in an error because the age variable is diclared as a constant using the const keyword.
7
And in javascript, a variable decalred with const cannot be readdigned a new value afteer it has been intialised ,
8
- so if we want to reassign the vlaue we have to use let instead.
+ so if we want to reassign the vlaue we have to use let instead.
9
+ let age = 33;
10
+ age = age +1;
11
+
0 commit comments