In pseudo-classical pattern, the object is created by a constructor function and it’s methods are put into the prototype.
All methods and properties of the object can be added in the constructor. This method doesn’t use prototype at all.
This pattern is special, because it doesn’t use "new".
The object is created by a simple function call, similar to Python-style:
var animal = Animal("fox")
var rabbit = Rabbit("rab")
Donate to this project
The content of this site is available under the terms of CC BY-NC-SA.
© Ilya Kantor, 2011.