Cuando te ocurra eso, haz un log a
this
Código Javascript
:
Ver originalfunction Televisor(precioBase, color, consumoEnergetico, peso, resolucion, sintonizador) {
console.log(this)
this.resolucion=resolucion || 20;
this.sintonizador=sintonizador || false;
this.base = Electrodomestico;
this.base(precioBase, color, consumoEnergetico, peso);
this.precioFinal = this.calcularPrecioFinal(); //ERROR isnot a function
this.calcularPrecioFinal = function() {
//CALCULOS
this.precioFinal += 500;
}
}