Build a BMI calculator

User
Posted by luhan
1 year ago in Q/A Section
405 views
7 replies
User
luhan
Posted 1 year ago

Write a function that calculates a user BMI. BMI = weight/height^2 Your code should request for the user's weight and height and then return their bmi to them. Your return statement should be "[BMI]kg/m^2.

P.S: To simplify, use prompt and alert (depending on how your language calls it) when necessary and make sure your code is testable on the Google Chrome console (developer tool)

Image preview

Replies (6)

Please login to post a reply.

Thread Actions
Related Tags