3 ms·
It is pretty straightforward to add it into your person constructor: Person.prototype.legalName = function () { return this.fullName.toUpperCase(); }
by adolph 4y ago
It is pretty straightforward to add it into your person constructor:
Person.prototype.legalName = function () {
return this.fullName.toUpperCase();
}
- test24234 4y agojavascript :(
- adolph 4y agoDon't hate the player, hate the game: Atwood's Law: any application that can be written in JavaScript, will eventually be written in JavaScript. https://blog.codinghorror.com/the-principle-of-least-power/ https://blog.codinghorror.com/the-principle-of-least-power/