http://www.documentroot.net/en - tips, tricks, tutorials
Showing all articles tagged with "javascript".
March 23, 2010

Tutorial: Classes, Prototypes and OOP in JavaScript

In JavaScript there are no classes in the conventional sense. Instead, the language uses a soewhat confusing approach of inheritance through prototypes. In this post I will explain the concept of prototype inheritance and its implementation in JavaScript. Furthermore, I’ll show how to use it to recreate a more famililar class-based environment known from other languages. Read more…

Internet, Miscellaneous , , , , , , , , ,