79132351

Date: 2024-10-28 07:12:54
Score: 1
Natty:
Report link
heroPower.getThorPower = function () {
    console.log(`thor power is ${this.thor}`);
    return `thor power is ${this.thor}`;
}

You can do it without using proto. This technique is used for Abstraction in OOP.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Shrey