a guest Jan 17th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand