Updated the 08/02/2013
- members on the prototypal chain
- the constructor property and the instance of operator working as intended
What i am going to introduce here is a function Class that uses another syntax to achieve the same, native result than the constructor functions; i am avoiding closures as class pattern because they don’t store members on the prototype (but they are a good way to define private members).
A more expressive syntax to write objects in OOP approach, as Class function tries to provide, is in my opinion a good way to help the development.
Continue reading →