Tagged with prototype
Prototype chaining is used to build new types of objects based on existing ones. It has a very similar job to inheritance in a class based language.
Published in Javascript on Monday, August 17th, 2009
The javascript object prototype is javascript’s way of sharing implementation across similar objects, much like the way classes are used to do this in many other languages. Although constructor functions look a lot like classes, javascript does not have a class based object system like C# or Java. Instead it has a prototype based object [...]
Published in Javascript on Sunday, January 18th, 2009
This is a series of articles about how to use the javascript language features to write object oriented type code. It's designed for people who are already sold on the idea of bundling functionality up into objects and want to know the javascript way of doing things.
Published in Javascript on Sunday, August 17th, 2008
I did my first ever developer developer developer day talk on the weekend. I went as a delegate to the second one and thought it was a really great day so it was really exciting to go speak there. I did a talk about developing objects in Javascript and talked about the basic things you [...]
Published in Community on Tuesday, December 5th, 2006