Skip to content

Commit d26014e

Browse files
committed
fixed the error in the problem
1 parent a0b416f commit d26014e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • Sprint-1/2-mandatory-errors

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

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

44
console.log(`I was born in ${cityOfBirth}`);
55
const cityOfBirth = "Bolton";
6+
7+
// The variable const cityOfBirth = "Bolton"; needs to be declared at first.
8+
// As it is not declared, JavaScript cannot find out the variable cityofBirth in console.log.

0 commit comments

Comments
 (0)