> '__proto__' on the other hand represents the actual prototype of an > instance. It's a non-standard approach and is only supported on some > browsers. The ES5 standard approach for retrieving an object's > prototype is Object.getPrototypeOf(obj) but this is not supported in > IE<9
I would clarify that getPrototypeOf is not the "same" as __proto__ in the sense that you can't write but you can read. __proto__ you can do both. But I've heard Brenden Eich doesn't think __proto__ is a good idea anymore. (http://www.mail-archive.com/[email protected]/msg03991.html). -- To view archived discussions from the original JSMentors Mailman list: http://www.mail-archive.com/[email protected]/ To search via a non-Google archive, visit here: http://www.mail-archive.com/[email protected]/ To unsubscribe from this group, send email to [email protected]
