Skip to content
This repository was archived by the owner on Oct 1, 2025. It is now read-only.

Commit 1eb6d41

Browse files
committed
feat: Challenge 2 of JS Fundamentals Done
1 parent cd24e1f commit 1eb6d41

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

challenges/section01-challenge01.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,14 @@ let markHigherBMI = BMIMark > BMIJohn;
1313

1414
console.log(BMIMark)
1515
console.log(BMIJohn)
16-
console.log(markHigherBMI);
16+
console.log(markHigherBMI);
17+
18+
if (markHigherBMI) {
19+
console.log("Mark's BMI is higher than John's!");
20+
console.log(`Mark's BMI (${BMIMark}) is higher than John's (${BMIJohn})!`);
21+
} else {
22+
console.log("John's BMI is higher than Mark's!");
23+
console.log(`John's BMI (${BMIJohn}) is higher than Mark's (${BMIMark})!`);
24+
25+
}
26+

0 commit comments

Comments
 (0)