Object.create()
is a Javascript function which takes 2 arguments and returns a new object. const proto = {_x000D_
talk : () => console.log('hi')_x000D_
}_x000D_
_x000D_
const props = {_x000D_
age: {_x000D_
writable: true,_x000D_
configurable: true,_x000D_
value: 26_x000D_
}_x000D_
}_x000D_
_x000D_
_x000D_
let Person = Object.create(proto, props)_x000D_
_x000D_
console.log(Person.age);_x000D_
Person.talk();
_x000D_
new
keyword you have no control over this (however, you can overwrite them of course).new
keyword invokes a constructor function. With Object.create()
there is no need for invoking or even declaring a constructor function.