Re:Class Hierarchies? Don't Do That
by AnimalMuppet on Monday March 31, 2014 @02:59PM
(#7503413)
What definition of OO doesn't include encapsulation?
And encapsulation in JS is fundamentally broken - everything is public.
Everything* in JS other than numbers, strings, and booleans are objects. Functions are objects.
See http://www.objectplayground.com for details. (Temporarily down due to server problems, but hopefully back up soon.)
*Not really everything. Not objects: undefined, null, number, string, boolean. Objects: object, array, regexp, function, everything else.