1var person = {
2 "first_name": "Bob",
3 "last_name": "Dylan"
4};
5person.hasOwnProperty('first_name'); //returns true
6person.hasOwnProperty('age'); //returns false
1o = new Object();
2o.propOne = null;
3o.hasOwnProperty('propOne'); // returns true
4o.propTwo = undefined;
5o.hasOwnProperty('propTwo'); // returns true
6