Skip to content

Commit 36baf7f

Browse files
Reverse the varible and console.log
1 parent 44b4c94 commit 36baf7f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • Sprint-2/2-mandatory-errors

‎Sprint-2/2-mandatory-errors/2.js‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
// Currently trying to print the string "I was born in Bolton" but it isn't working...
22
// what's the error ?
3-
4-
console.log(`I was born in ${cityOfBirth}`);
53
const cityOfBirth = "Bolton";
64

5+
console.log(`I was born in ${cityOfBirth}`);
76

87
/*we need to put declare variables(const cityOfBirth = "Bolton";) in first line after using expression console.log*/

0 commit comments

Comments
 (0)