var man = new Object(); man.name = 'Vikas Ahlawat'; man.living = true; man.age = 27; man.getName = function() { return man.name;} console.log(man.getName()); // Logs 'Vikas Ahlawat'.