Skip to content

Commit 8348eb6

Browse files
committed
completed 2.js with comments
1 parent 001baba commit 8348eb6

File tree

1 file changed

+7
-0
lines changed
  • Sprint-1/2-mandatory-errors

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,10 @@
33

44
console.log(`I was born in ${cityOfBirth}`);
55
const cityOfBirth = "Bolton";
6+
7+
//*Answer
8+
// The console.log is before the variable and it cannot see it.
9+
// The console log needs to be blow the variable to compute the data.
10+
11+
const cityOfBirth = "Bolton";
12+
console.log(`I was born in ${cityOfBirth}`);

0 commit comments

Comments
 (0)