In JavaScript, the _________ property is a reference to an object from which the current object inherits properties.
- prototype
- this
- parent
- child
In JavaScript, the prototype property is a reference to an object from which the current object inherits properties and methods. When you access a property or method on an object, JavaScript first looks for it on the object itself and then, if not found, on its prototype. Understanding prototypal inheritance is crucial in JavaScript.
Loading...
Related Quiz
- Which keyword is used to check a condition in JavaScript?
- An async function can contain an await expression that pauses the execution of the async function and waits for the passed _______ to resolve or reject.
- How does the "this" keyword behave in arrow functions inside methods?
- What is the purpose of the capture parameter in addEventListener method?
- How does the temporal dead zone impact function expressions in JavaScript?