You are viewing a single comment's thread. Return to all comments →
"Singleton Class Using a Function" has incorrect information in the "Topics".
The given example creates an object, similarly as if one would do:
myObject = {a:1};
It doesn't create a singleton.
Seems like cookies are disabled on this browser, please enable them to open this website
Day 4: Classes
You are viewing a single comment's thread. Return to all comments →
"Singleton Class Using a Function" has incorrect information in the "Topics".
The given example creates an object, similarly as if one would do:
myObject = {a:1};
It doesn't create a singleton.