Saved Bookmarks
| 1. |
What is singleton class in JavaScript? Explain |
|
Answer» SINGLETON is a JavaScript object which can be INSTANTIATED one time, whereas the singleton pattern is a design pattern that restricts the reinstallation of a class to one object. It allows only a single instance of itself to be created and can give access to that created instance.
Point to be noted:- Don’t let this JavaScript INTERVIEW Question TAKE your job opportunity. Read it twice and then GO for the interview. |
|