Skip to content

Commit c1a8dc6

Browse files
committed
correctly wrote single line comment
1 parent 772f314 commit c1a8dc6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • Sprint-1/2-mandatory-errors

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
// Currently trying to print the string "I was born in Bolton" but it isn't working... //
2-
// what's the error ? //
1+
// Currently trying to print the string "I was born in Bolton" but it isn't working...
2+
// what's the error ?
33

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

77

8-
// The variable const cityOfBirth = "Bolton"; needs to be declared at first. //
9-
// As it is not declared, JavaScript cannot find out the variable cityofBirth in console.log. //
8+
// The variable const cityOfBirth = "Bolton"; needs to be declared at first.
9+
// As it is not declared, JavaScript cannot find out the variable cityofBirth in console.log.

0 commit comments

Comments
 (0)