What is the prototype of an object in JavaScript?
- __proto__
- prototype
- base
- parent
In JavaScript, the __proto__ property is a reference to the prototype object that an object inherits from. It is an internal property and can be accessed using object.__proto__. The prototype property, on the other hand, is a property of constructor functions and is used to define the prototype for objects created using that constructor. The other options are not commonly used for this purpose.
Loading...
Related Quiz
- The npm start command will run the script specified under the ______ key in the package.json file.
- How does the main field in the package.json file affect the behavior of a Node.js module when it is required by another module?
- To enable debugging in an Express app, you should set the DEBUG environment variable to ______.
- Express.js middleware functions have access to the ______ object, the ______ object, and a next function in their callback function parameters.
- Which of the following is the correct way to declare a variable in JavaScript?