¿Qué valor tiene gato1.nombre después de ejecutar el siguiente código?
function Gato(nombre, edad) {
this.nombre = nombre;
this.edad = edad;
}
const gato1 = new Gato('Whiskers', 3);
¿Qué valor tiene gato1.nombre después de ejecutar el siguiente código?
function Gato(nombre, edad) {
this.nombre = nombre;
this.edad = edad;
}
const gato1 = new Gato('Whiskers', 3);