DEV Community

loading...

Discussion on: Singleton in JavaScript

tomekbuszewski profile image
Tomek Buszewski Author

You are completely right, but here you are stepping away from the merit of the text, which is singleton design pattern. In JavaScript all (or are there some that aren't?) reference types can be cloned and those cloned modified.