Please sign in to comment.
- Loading branch information...
|-Because if you are disciplined and assign only functions to a prototype object, and if those functions use `this` to work with an instance, and if you set up a prototype chain when you want inheritance, you have something that works just like a simple class-based system.|
|+1. You use a function as a constructor, and;|
|+2. You use a prototype for defining instance methods, and;|
|+3. The prototype is used strictly for defining the instance methods and nothing else;|
|+You will have something that works just like a simple class-based system, with the constructor function and its prototype acting as the "class."|
|But if you want more, you have a flexible system that does allow you to do more. It's up to you.|
|@@ -144,4 +152,4 @@ My recent work:|
|(Spot a bug or a spelling mistake? This is a Github repo, fork it and send me a pull request!)|
|-[Reg Braithwaite](http://braythwayt.com) | [@raganwald](http://twitter.com/raganwald)|
|+[Reg Braithwaite](http://braythwayt.com) | [@raganwald](http://twitter.com/raganwald)|