InterviewSolution
Saved Bookmarks
| 1. |
What is the prototype in javascript and how do you use it? |
|
Answer» PROTOTYPES are objects CREATED in Javascript. They are the “parent” objects. If we WANT to create COMMON TASKS (properties/methods) for all the objects inherited from the parent object we need to define them in the prototype object. |
|