Javascript Classes and Object Inheritance with Prototype.js
March 15th, 2009
If you’re used to writing Object Oriented PHP switching to Javascript could be confusing, it takes a lot of effort and ugly code to actually write pure classes. You won’t be able to create abstract-classes or use interfaces. On the other hand; being a prototyped language Javascript offers a lot of possibilities that you won’t find in PHP. If you’re used to the way of thinking of OOP in PHP, why not use this knowledge to write Javascript-classes? This is where Prototype.js comes in.

