Dev Cafe

Wednesday, December 13, 2006

Why not "super" in JavaScript?

Javascript is a scripting language which supports OO. I was supposed to develop a javascript framework in my project and I was using the prototype method for creating javascript classes. Oops, Not classes, create prototypes in Javascript. Prototype is the correct word to describe it. There isnt a straight forward provisioning in javascript to access the super class's method. Why is not "super" a keyword in javascript? Why cant there be an straight forward provisioning in Javascript to access the super prototype? I found this article useful on how to access the same, but still the "Why" is still unanswered.

0 Comments:

Post a Comment

<< Home