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
// trying to create an age variable and then reassign the value by 1
2
2
3
+
const{ cityOfBirth }=require("./2");
4
+
3
5
letage=33;
4
6
age=age+1;
5
7
console.log(age);
8
+
// Currently trying to print the string "I was born in Bolton" but it isn't working...
9
+
// what's the error ?
10
+
console.log(`I was born in ${cityOfBirth}`);
6
11
7
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.
0 commit comments