Guest User

Untitled

a guest
Jan 17th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. var user1 = {
  2. firstName1: prompt(" Enter your first name: "),
  3. LastName1: prompt(" Enter your last name: "),
  4. user1Height: parseFloat(prompt(" Enter your height in cm: ")),
  5. user1Weight: parseFloat(prompt(" Enter your weight in lbs: ")),
  6. user1BMI: function(){
  7. return (this.user1Height*this.user1Height)/this.user1Weight;
  8. }
  9. };
  10. console.log(user1.firstName1);
  11. console.log(user1.user1BMI);
Add Comment
Please, Sign In to add comment