Skip to content

Commit 0fc0771

Browse files
committed
Fix city declaration error
1 parent 2edba64 commit 0fc0771

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • Sprint-2/2-mandatory-errors

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
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}`);
54
const cityOfBirth = "Bolton";
5+
// Declare the variable before using it in the template literal.
6+
console.log(`I was born in ${cityOfBirth}`);

0 commit comments

Comments
 (0)