You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sprint-2/1-key-exercises/1-count.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5,4 +5,4 @@ count = count + 1;
5
5
// Line 1 is a variable declaration, creating the count variable with an initial value of 0
6
6
// Describe what line 3 is doing, in particular focus on what = is doing
7
7
8
-
//Line 3 is reassignment of variable "count". The new assignment adds 1 to current value of count, "=" is to assign value on right-hand side to variable on left.
8
+
//Line 3 is reassignment of variable "count". The new assignment adds 1 to current value of count, "=" is to assign value on right-hand side to variable on left.
Copy file name to clipboardExpand all lines: Sprint-2/2-mandatory-errors/2.js
+2-3Lines changed: 2 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -4,8 +4,7 @@
4
4
constcityOfBirth="Bolton";
5
5
console.log(`I was born in ${cityOfBirth}`);
6
6
7
-
8
-
//The error is that the variable should be declared as a constant before it is used in the console.log statement.
7
+
//The error is that the variable should be declared as a constant before it is used in the console.log statement.
9
8
10
9
//This is a ReferenceError.
11
-
//In this code, the key word does not need to be constant, it can be let - if this is the case the variable city0fBirth can be reassigned in other lines - instead of constant (which cannot reassign variable).
10
+
//In this code, the key word does not need to be constant, it can be let - if this is the case the variable city0fBirth can be reassigned in other lines - instead of constant (which cannot reassign variable).
0 commit comments