JavaScript Developer — Hard
Key points
- Object.getPrototypeOf() is the standard way to access an object's prototype
- obj.__proto__ is deprecated and should not be used in production code
- Using Object.getPrototypeOf() ensures consistency and reliability in your code
Ready to go further?
Related questions
