From af55650a42f476d9f5b604bfa5d4ccee22f058dc Mon Sep 17 00:00:00 2001 From: Marcos Lopez Date: Wed, 24 Jan 2024 13:51:24 +0100 Subject: [PATCH] Dia 34 --- Practicas/Practicas JS/DOM 07/index.html | 79 +++++++++ .../DOM 6/ejercicio06_DOM_version2.html | 98 +++++++++++ Practicas/Practicas JS/DOM 6/js/main.js | 13 ++ .../Introduccion/10_OBJETOS_JAVASCRIPT.html | 155 ++++++++++++++++++ .../Introduccion/11_DATE_Javascript.html | 101 ++++++++++++ 5 files changed, 446 insertions(+) create mode 100644 Practicas/Practicas JS/DOM 07/index.html create mode 100644 Practicas/Practicas JS/DOM 6/ejercicio06_DOM_version2.html create mode 100644 Practicas/Practicas JS/Introduccion/10_OBJETOS_JAVASCRIPT.html create mode 100644 Practicas/Practicas JS/Introduccion/11_DATE_Javascript.html diff --git a/Practicas/Practicas JS/DOM 07/index.html b/Practicas/Practicas JS/DOM 07/index.html new file mode 100644 index 0000000..4352e0a --- /dev/null +++ b/Practicas/Practicas JS/DOM 07/index.html @@ -0,0 +1,79 @@ + + + + + + + Document + + + + +
+ + + +
+
+ + + +
+ + + \ No newline at end of file diff --git a/Practicas/Practicas JS/DOM 6/ejercicio06_DOM_version2.html b/Practicas/Practicas JS/DOM 6/ejercicio06_DOM_version2.html new file mode 100644 index 0000000..541e5c7 --- /dev/null +++ b/Practicas/Practicas JS/DOM 6/ejercicio06_DOM_version2.html @@ -0,0 +1,98 @@ + + + + + Ejercicio 06 JAVASCRIPT Coste viaje + + + + + +
+ +

Introduzca número de dias +

+ Seleccione Destino + +

+ +
+

Elige el día de salida

+
+

Coste vuelo

+

Coste hotel

+

Tasas viaje

+

Coste alquiler coche

+

Coste total

+ + + +
+
+ + \ No newline at end of file diff --git a/Practicas/Practicas JS/DOM 6/js/main.js b/Practicas/Practicas JS/DOM 6/js/main.js index 190af8f..830066f 100644 --- a/Practicas/Practicas JS/DOM 6/js/main.js +++ b/Practicas/Practicas JS/DOM 6/js/main.js @@ -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()); \ No newline at end of file diff --git a/Practicas/Practicas JS/Introduccion/10_OBJETOS_JAVASCRIPT.html b/Practicas/Practicas JS/Introduccion/10_OBJETOS_JAVASCRIPT.html new file mode 100644 index 0000000..4b876d4 --- /dev/null +++ b/Practicas/Practicas JS/Introduccion/10_OBJETOS_JAVASCRIPT.html @@ -0,0 +1,155 @@ + + + + +OBJETOS JAVASCRIPT + + + +Pulsa aquí para ver a usuario1
+
+Pulsa aquí para ver a usuario2
+
+Pulsa aquí para ver a producto1
+ + + \ No newline at end of file diff --git a/Practicas/Practicas JS/Introduccion/11_DATE_Javascript.html b/Practicas/Practicas JS/Introduccion/11_DATE_Javascript.html new file mode 100644 index 0000000..b551a42 --- /dev/null +++ b/Practicas/Practicas JS/Introduccion/11_DATE_Javascript.html @@ -0,0 +1,101 @@ + + + + +OBJETO DATE JAVASCRIPT + + + + + + + \ No newline at end of file