Skip to content

Commit 0e312da

Browse files
authored
finding the error
1 parent 4793b3d commit 0e312da

File tree

1 file changed

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

1 file changed

+6
-0
lines changed

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

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

44
console.log(`I was born in ${cityOfBirth}`);
55
const cityOfBirth = "Bolton";
6+
7+
// The variable cityOfBirth should be declared before it is used in the console.log statement.
8+
/*
9+
const cityOfBirth = "Bolton";
10+
console.log(`I was born in ${cityOfBirth}`);
11+
*/

0 commit comments

Comments
 (0)