'use strict';
// create a new superhero
const Hero = function (name, alias, power) {
this.name = name;
this.alias = alias;
this._power = power;
};
// assigning the new hero's attributes
let superMan = new Hero('Clark Kent', 'Superman', 'faster than a speeding bullet');
let spiderMan = new Hero('Peter Parker', 'Spiderman', 'acts like a spider');
// create a usePower method on the hero prototype (will use the superhero's power that is called)
Hero.prototype.usePower = function () {
return this._power;
};
// create a revealID method on the hero prototype (will reveal the superhero's real name that is called)
Hero.prototype.revealID = function () {
return this.alias + 's real identity is ' + this.name + '!';
};