We can add getter & setter in javaScript object like normal properties but secretly have methods associated with them. var Student = { name: "Default", type: "Student", get Name(){ return this.name;}, set Name(name){ this.name = name; }, get Type(){ return this.type; }, set Type(type){ this.type = type; } } var atik = Object.create(Student); console.log(atik.Name); console.log(atik.Type); we can also add getter & setter ro an existing property. Using Object.defineProperty. var Student = { name: "Default", type: "Student", } var atik = Object.create(Student); Object.defineProperty(Student, 'Name', { get: function() { return this.name; }, set: function(name) { this.name = name; } }); atik.Name = "Ahsan"; console.log(atik.Name);