This is my error, but I have some functions like that and they work. What am I doing wrong?
I try to change the prototype's name but it's the same error
function Pendejo(nickname, edad, pendejo) {
this.nickname = nickname;
this.edad = edad;
this.pendejo = pendejo;
}
Pendejo.prototype.show = function() {
return `Soy ${this.nickname} y soy ${this.pendejo}% pendejo`;
}
let ryu = new Pendejo('Ryu', 22, 100);
console.log(Pendejo.show());