Today's Question:  What does your personal desk look like?        GIVE A SHOUT

 ALL


  Prototypes in JavaScript

Following on from his previous article, David Chisnall explores JavaScript as an example of prototype-based object orientation. In this article, he shows how it's possible to implement more complex object models on top of this simple abstraction.My previous article, Prototypes and Object Orientation, considered the differences between class-based and prototype-based object orientation. In this article, we'll look in a bit more detail at the workings of the JavaScript object model, since it's currently the most popular prototype-based object-oriented language.What's New?In Self, you create...

2,972 0       JAVASCRIPT PROTOTYPE OBJECT ORIENTED OBJ