Create JavaScript Object
By Object() constructor: var obj = new Object(); By Object.create() method: Object.create: Will return a new object with properties of prototypeObject. var obj = Object.create(prototypeObject); By brackets: It is the same as Object.create() method with a null parameter. var obj = {}; By function constructor: var MySite = function(website) { this.website = website; } var … Read more