1var person={"name":"Billy","age":20}
2person.hasOwnProperty("name"); // true
3person.hasOwnProperty("sex"); // false
1!("key" in obj) // true if "key" doesn't exist in object
2!"key" in obj // ERROR! Equivalent to "false in obj"
3
1var obj = { key: undefined };
2obj["key"] !== undefined // false, but the key exists!