I would dispute that it's easy to pick up for beginners. It's easy to START doing then things, and then intricacies you don't understand will kill you. The prototype chain, function call context, closures, asynchronous code, etc.
Type class Dog extends Animal into js2coffee.org and you get this:
var Dog,
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) {
for (var key in parent) {
if (__hasProp.call(parent, key)) child[key] = parent[key];
}
function ctor() {
this.constructor = child;
}
ctor.prototype = parent.prototype;
child.prototype = new ctor();
child.__super__ = parent.prototype;
return child;
};
Dog = (function(_super) {
__extends(Dog, _super);
function Dog() {
return Dog.__super__.constructor.apply(this, arguments);
}
return Dog;
})(Animal);