Skip to content

Commit 4c7f5d9

Browse files
committed
ReferenceError for 2.js
Order of the code was incorrect and showed suggestion to fix.
1 parent a50c7a7 commit 4c7f5d9

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

  • Sprint-2/2-mandatory-errors

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
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+
// console.log(`I was born in ${cityOfBirth}`);
5+
// const cityOfBirth = "Bolton";
6+
7+
//ReferenceError is happening
8+
59
const cityOfBirth = "Bolton";
10+
console.log(`I was born in ${cityOfBirth}`);

0 commit comments

Comments
 (0)