Skip to content

Commit 8e9765f

Browse files
authored
I have flipped two lines of code around because variable has to be declared first then used.
1 parent 4d9ad54 commit 8e9765f

File tree

1 file changed

+4
-1
lines changed
  • Sprint-1/2-mandatory-errors

1 file changed

+4
-1
lines changed

Sprint-1/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+
//console.log(`I was born in ${cityOfBirth}`);
5+
//const cityOfBirth = "Bolton";
6+
57
const cityOfBirth = "Bolton";
8+
console.log(`I was born in ${cityOfBirth}`);

0 commit comments

Comments
 (0)