In JavaScript, the ______ property is used to set up inheritance between custom types.
- inherit
- prototype
- extend
- object
In JavaScript, the prototype property is used to set up inheritance between custom types. It allows one object to inherit properties and methods from another object. This is a fundamental concept in JavaScript's object-oriented programming model.
Loading...
Related Quiz
- Which of the following strategies can be used to efficiently serve static assets and optimize performance?
- You are designing a logging system in Node.js where multiple loggers are listening to logging events. How would you manage and optimize the event listeners to avoid potential memory leaks?
- ________ is a security practice that involves encoding information so that only authorized parties can access it.
- In Pug, to extend a layout, you use the extends keyword and to fill a block within the layout, you use the ______ keyword.
- You are developing a system with stringent data integrity requirements. How would you design the schema to enforce data integrity constraints and handle violations effectively?