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

Commit cd24e1f

Browse files
committed
feat: Challenge 1 of JS Fundamentals Done
1 parent 973d24a commit cd24e1f

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

02-Fundamentals-Part-2/starter/script.js

Whitespace-only changes.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
function calculateBMI(mass, height) {
2+
return mass / (height * height);
3+
}
4+
5+
let markMass = 78;
6+
let markHeight = 1.69;
7+
let BMIMark = calculateBMI(markMass, markHeight);
8+
let johnMass = 92;
9+
let johnHeight = 1.95;
10+
let BMIJohn = calculateBMI(johnMass, johnHeight);
11+
12+
let markHigherBMI = BMIMark > BMIJohn;
13+
14+
console.log(BMIMark)
15+
console.log(BMIJohn)
16+
console.log(markHigherBMI);

0 commit comments

Comments
 (0)