I have been trying to know if it is a method or a variable next to a function but I can not understand or find anything, javascript is for example
var auto = {
nombre: "Mustang",
anio: 1965,
motor: 5.5,
color: "azul",
clasico: true,
es_real: false
}
function recorrer_objeto(automovil) {
console.log(this.nombre);
console.log(this.anio);
console.log(this.motor);
console.log(this.color);
console.log(this.clasico);
console.log(this.es_real);
}
**auto.mostrarAuto = recorrer_objeto;**
auto.mostrarAuto();
Would it all show a car variable? or a method? and then it would work out and give the function without necessarily chaining it to auto? (line that I do not understand between ** **; ()