OneDirect (India) interview question

Singleton design pattern in javascript