Hello, good morning, I would be needing help with the following exercise because I cannot execute the sell function in the code. I share the code below.
[image]
class Productos{
constructor(nombre, precio, tipoServicio, detalle){
this.id = productos;
this.nombre = nombre.toUpperCase();
this.precio = Number(precio);
this.tipoServicio = tipoServicio.toUpperCase();
this.detalle = detalle.toUpperCase();
this.vendido = false;
}
vender(){
this.vendido = true
}
sumaIva(){
this.precio *= 1.21;
}
}