if an object contains a specific key javascript code example Example: javascript if object has key if('key' in object)