I understand basic JavaScript pseudo-classes:
function Foo(bar) { this._bar = bar; } Foo.prototype.getBar = function() { return this._bar; }; var f
This closure allows instantiation and encapsulation but no inheritance.
function Foo(){ var _bar = "foo"; return { getBar: function() { return _bar; }, setBar: function(bar) { _bar = bar; } }; }; a = Foo(); b = Foo(); a.setBar("bar"); alert(a.getBar()); // "bar" alert(b.getBar()); // "foo"