Skip to content

Commit 18a1da4

Browse files
authored
Correct cityOfBirth declaration for logging
Fix variable declaration order to enable correct logging.
1 parent 424ec1c commit 18a1da4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • Sprint-2/2-mandatory-errors

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

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

4-
console.log(`I was born in ${cityOfBirth}`);
54
const cityOfBirth = "Bolton";
5+
console.log(`I was born in ${cityOfBirth}`);

0 commit comments

Comments
 (0)