3 ms·
Object.create has two parts: the "create a new object with this other object as its prototype" part and the "define properties" part. The first part can be easi
by bmuon 15y ago
Object.create has two parts: the "create a new object with this other object as its prototype" part and the "define properties" part. The first part can be easily reproduced in ES3 and it's the most useful part. It's really well explained in this article by Douglas Crockford http://javascript.crockford.com/prototypal.html http://javascript.crockford.com/prototypal.html.