WishMaster,
function Bote(name) {
this.name = name;
}
Bote.prototype.init = function () {
alert('Бот загружен ' + this.name);
};
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);
};
var a = new FreeBitcoinAccountController('FreeBitcoin');
a.init();