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-1/2-mandatory-errors/1.js
+1-2Lines changed: 1 addition & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -3,10 +3,9 @@
3
3
const{ cityOfBirth }=require("./2");
4
4
5
5
letage=33;
6
-
age=age+1;
7
6
console.log(age);
8
7
// Currently trying to print the string "I was born in Bolton" but it isn't working...
9
8
// what's the error ?
10
9
console.log(`I was born in ${cityOfBirth}`);
11
10
12
-
// Changed const to let because the variables value need to change during the program. const creates a fixed reference that cannot be reassigned. but let allows updating the variable which is required when incrementing or modifying values.
11
+
// Changed const to let because the variables value need to change during the program. const creates a fixed reference that cannot be reassigned. but let allows updating the variable which is required when incrementing or modifying values.
0 commit comments