You are viewing a single comment's thread from:

RE: JavaScript Basics: Object.create

in #javascript7 years ago

Very good explanation on Object.create method .I used to create object using the new operator like var obj=new Object(); other way is using the object literal notation like var obj={} and another way is to create a object from the function(i.e constructor).

Sort:  

Thanks. Sometimes it is easier to use Object.create.