re: Singleton in JavaScript VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Hi, and thanks foe your kind words! JavaScript doesn't have private and public distinction (yet), so the short answer is - no. The long one is -...
 

Thanks Tomek for the follow-up~ 🙏

That sounds like another great reason to use TypeScript 🙂

Yes, TypeScript is a great tool and I use it recently for almost everything. The best thing is, it's JavaScript superset, so you don't really have to know everything and can just build your knowledge while working on a project. Create a plain JS code then slowly fill the type coverage as you go :)

code of conduct - report abuse