AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
How to Create a New Object Which Inherits an Existing Object in JavaScript
Which of the following is not a correct way to create a new object which inherits from it an existing old object? The spread one, the spread one is weird to me because that only takes a copy of the top level ones. And then we'll reference nested values, which is maybe what you want because the prototype will be looked up. So I'm going to say that the dot constructor.