Friends I'm trying the following
class Player{
//todo lo que resiba este const será la clase persona
constructor(nombre,edad){
nombre == this.nombre;
edad == this.edad;
}
mA(){
console.log('la edad es de ${this.edad}')
}
}
let px = new Player('kyo',21);
px.mA();
but it gives me
the age is undefined
Does anyone know why? Am I jumping something?