javascript if object contains key with value code example Example: javascript if object has key if('key' in object)