Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var john = {
- firstName: 'John',
- lastName: 'Smith',
- mass: 80,
- height: 1.69,
- calculatebmi: function() {
- this.BMI = this.mass / (this.height * this.height);
- }
- };
- console.log(john)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement