function Bote(name) {
this.name = name;
}
Bote.prototype.init = function () {
alert('bla-bla');
};
function FreeBitcoinAccountController(name) {
Bote.apply(this, arguments);
}
FreeBitcoinAccountController.prototype = Object.create(Bote.prototype);
FreeBitcoinAccountController.prototype.constructor = FreeBitcoinAccountController;
FreeBitcoinAccountController.prototype.init = function () {
Bote.prototype.init.call(this); // Bote
alert('Бот загружен ' + this.name); // FreeBitcoin
};
var a = new FreeBitcoinAccountController('FreeBitcoin');
a.init();