Skip to content

Commit ad59545

Browse files
error fixed
1 parent 1413d04 commit ad59545

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
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...
2-
// what's the error ?
2+
// what's the error ? Ans:They i try to prin the cityOfBirth before it was defined
33

4-
cityOfBirth = "Bolton";
4+
const cityOfBirth = "Bolton";
55
console.log(`I was born in ${cityOfBirth}`);

0 commit comments

Comments
 (0)