I\'ve been using the new keyword in JavaScript so far. I have been reading about Object.create and I wonder if I should use it instead. What I don\
new
Object.create
The exact source code for the Object.create() function is:
function Object.Create(proto, propertiesObject) { var obj = {}; Object.setPrototypeOf(obj, proto); if(propertiesObject) { Object.defineProperties(obj, propertiesObject); } return obj; }