Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var user1 = {
- firstName1: prompt(" Enter your first name: "),
- LastName1: prompt(" Enter your last name: "),
- user1Height: parseFloat(prompt(" Enter your height in cm: ")),
- user1Weight: parseFloat(prompt(" Enter your weight in lbs: ")),
- user1BMI: function(){
- return (this.user1Height*this.user1Height)/this.user1Weight;
- }
- };
- console.log(user1.firstName1);
- console.log(user1.user1BMI);
Add Comment
Please, Sign In to add comment