Skip to content

Commit b584bde

Browse files
committed
changed cosole.log() after initialization of cityOfBirth const
1 parent 56bebf5 commit b584bde

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • Sprint-2/2-mandatory-errors

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
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+
55
const cityOfBirth = "Bolton";
6-
// The error is that the const declation and initialization came after console.log so no access for cityOfBirth.
6+
// The error is that the const declation and initialization came after console.log so no access for cityOfBirth.
7+
console.log(`I was born in ${cityOfBirth}`);

0 commit comments

Comments
 (0)