The singleton can be implemented by another way.51SimrendrasinghJohn Au-YeungJun 16, 2020·1 min readThat’s good for hiding private variables.Which is something that’s lack with JavaScript for a long time.