Skip to content

Commit 65ed66e

Browse files
committed
I put the declaration of the variable on the top so the program knows the variable, then print it
1 parent 88e4a0d commit 65ed66e

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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}`);
54
const cityOfBirth = "Bolton";
5+
console.log(`I was born in ${cityOfBirth}`);

0 commit comments

Comments
 (0)