> guess) it a pain. the javascript class code structure it also very akword > to be coming from a C++ background.
Amen, and i had the same hurdle to climb, but JavaScript isn't C++. It uses a completely different type of OOP. These articles may be helpful in understanding it: Implementing classical inheritance in JS: http://javascript.crockford.com/inheritance.html Understanding Prototypal inheritance: http://javascript.crockford.com/prototypal.html It's interesting to note that while the first article is quite famous, and does show how to implement C++-like inheritance in JS, the author of the article no longer stands by that method, preferring prototypal inheritance instead.