classes

Object-oriented Classes in JavaScript

I believe ~ 110% of web developers knows about the existence of JavaScript (JS), but not so many have used it before.

Anyway, this article is not intended for any of them but for JS programmers who never used it as an Object-oriented (OO) language and want to do it - or, at lest, know how you can define classes, methods, modify classes and all its instances in runtime (after all, JS is interpreted code) just as you would in Smalltalk, and even define private stuff so no other objects else can access them.

Syndicate content