class avenger {
#HeadQuartersPassword = "4V3NG3R5";
constructor(name, age, power) {
this.name = name;
this.age = age;
this.power = power;
this.rescue = () => `${this.name} used ${this.power} and rescued a civilian!`;
this.unlockDoor = () => {
const chars = this.#HeadQuartersPassword.length;
return `${this.name} unlocked the door by entering password: ${"*".repeat(chars)}`
}
}
}