Creating an object in JavaScript

There are no best way to create an object in javascript. But following are the few good practices. Depends on situation we have to choose the implementation. Creating new object: Using function constructor: Creating new object: Singleton Javascript object: Source code: How to create Singleton Javascript Object