This commit is contained in:
Marcos Lopez
2024-01-24 13:51:24 +01:00
parent b83034e0ab
commit af55650a42
5 changed files with 446 additions and 0 deletions

View File

@@ -44,3 +44,16 @@ function calculaTotales() {
costeAlquilerCoche.value = alquilerCoche;
costeTotal.value = total;
}
class Persona {
constructor(a) {
this.nombre = a;
}
obtenerNombre() {
return this.nombre;
}
}
let personas = new Persona('hola, ');
console.log(personas.obtenerNombre());