'key' in obj β true if the object has the key (own or inherited)obj instanceof Constructor β true if Constructor.prototype is in the prototype chainChallenge: Write checkMembership() that tests:
hasName: 'name' in { name: 'Alice' }hasFoo: 'foo' in { name: 'Alice' }isArray: [1,2,3] instanceof ArrayisDate: new Date() instanceof Date