Skip to content

Commit 9ab417a

Browse files
committed
code ijmprovement
1 parent c60427b commit 9ab417a

File tree

1 file changed

+5
-5
lines changed
  • Sprint-2/1-key-errors

1 file changed

+5
-5
lines changed

Sprint-2/1-key-errors/0.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
/"hello Mhairi" === `hello ${mhairiName}`;
1+
"hello Mhairi" === `hello ${mhairiName}`;
22
"${mhairiName} is 28" === `Mhairi is ${mhairiAge}`;
33

44
// My answer is:
55
const mhairiName = "Mhairi";
66
const mhairiAge = 28;
77

8-
const sentence1= `hello ${mhairiName}`;
9-
console.log(sentence1); // ➜ Output: hello Mhairi
8+
const sentence1= `Hello ${mhairiName},nice to meet you`;
9+
console.log(sentence1); // ➜ Output: Hello Mhairi, nice to meet you
1010

1111

12-
const sentence= `${mhairiName} is ${mhairiAge}`;
13-
console.log(sentence); // ➜ Output: Mhairi is 28
12+
const sentence= `${mhairiName} is ${mhairiAge} years old`;
13+
console.log(sentence); // ➜ Output: Mhairi is 28 years old

0 commit comments

Comments
 (0)