Question: Use the BMI example from class activity (BMI question), and the code you already wrote, and improve it: 1. Print a nice output to the

Use the BMI example from class activity (BMI question), and the code you already wrote, and improve it: 1. Print a nice output to the console, saying who has the higher BMI. The message can be either "Lucas' BMI is higher than John's!" or "John's BMI is higher than Lucas'!" 2. Use a template literal to include the BMI values in the outputs. Example: "John's BMI (28.3) is higher than Lucas BMI (23.9), that is True/False!" HINT: Use an if/else statement; the variables you create in class are: johnBMI, lucasBMI, lucasHigherBMI.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!