JavaScript Developer — Hard
Key points
- Object.create() creates an object with a specified prototype
- Prototype chain allows 'p' to access 'greet' method
- 'p' is an instance of 'Person' due to prototype inheritance
Ready to go further?
Related questions
