JavaScript Professional — Hard
Key points
- Object.create() sets b's prototype to a
- Object.keys() returns own properties only
- Object.getOwnPropertyNames() returns all properties
- 'x' in b checks for property 'x' in b
Ready to go further?
Related questions
