Skip to content

Commit 2623dbd

Browse files
committed
Make the cityOfBirth the first line before the console.log
1 parent 094f842 commit 2623dbd

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • Sprint-2/2-mandatory-errors

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
// Currently trying to print the string "I was born in Bolton" but it isn't working...
22
// what's the error ?
33

4-
console.log(`I was born in ${cityOfBirth}`);
4+
//Answer
5+
// The console.log will be execued first because it is before the declared city variable.
6+
57
const cityOfBirth = "Bolton";
8+
console.log(`I was born in ${cityOfBirth}`);

0 commit comments

Comments
 (0)