Skip to content

fikrcamp/js-challenge-1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Javascript Fundementals Challenge One (Part One)πŸ’ͺ🏾

Part 1:

Mohamed and Ali are tying to compare their BMI (Body Mass Index), which is calculated using the formula:

BMI = mass / height ** 2 BMI = mass / (height * height) (mass in kg and height in meter).

Your Task πŸ˜ƒ:
  1. Store Mohamed and Ali mass and heigh in variables
  2. calculate both their BMIs using the formula
  3. create a Boolean varaible MohamedHigherBMI containing information whether Mohamed has a higher BMI than Ali

Good Luck πŸ˜€

Test data

Data 1: Mohamed weights 78 kg and is 1.69 m tall. Ali weights 92 kg and is 1.95 m tall Data 2: Mohamed weights 95 kg and is 1.88 m tall. Ali weights 85 kg and is 1.79 m tall

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published