Hi,
at the end of the "The [[Prototype]] Property", you say
"This example also highlights an important concept: You cannot assign a value to a prototype property from an instance. ”
Excerpt From: Nicholas C. Zakas. “The Principles of Object-Oriented Javascript.” iBooks.
But actually you can do object.__proto__.toString = function() { return '[object Custom2]'; }, object.__proto__.prop1 = 10, or object.__proto__.f1 = function() { return 10; }
Is it something which I am missing or you have some something else in mind?
--
You received this message because you are subscribed to the Google Groups "Zakas Books" group.
To unsubscribe from this group and stop receiving emails from it, send an email to zakasbooks+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to zakasbooks+...@googlegroups.com.