With AirBnB this code is bad:
Greeter.prototype.greet = function () {
return `${greetText}, ${this.greetTarget}`;
};
This article helps me to fix code:
Greeter.prototype.greet = function greet() {
return `${greetText}, ${this.greetTarget}`;
};
Arrow functions here are not suitable (just run jest 😉):
Greeter.prototype.greet = () => `${greetText}, ${this.greetTarget}`;