From 958814b05501859592b8821b064c64370ad22b4e Mon Sep 17 00:00:00 2001 From: Marcos Lopez Date: Fri, 2 Feb 2024 13:48:31 +0100 Subject: [PATCH] Dia41 --- .../Practicas JS/Examen UF1842/index optimizado.html | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Practicas/Practicas JS/Examen UF1842/index optimizado.html b/Practicas/Practicas JS/Examen UF1842/index optimizado.html index baf99fe..1999f79 100644 --- a/Practicas/Practicas JS/Examen UF1842/index optimizado.html +++ b/Practicas/Practicas JS/Examen UF1842/index optimizado.html @@ -194,14 +194,8 @@ setValue('resultado', mensaje); } - function difFechasDias(fechaIni, fechaFin) { - const dias = Math.ceil((new Date(fechaFin) - new Date(fechaIni)) / (1000 * 60 * 60 * 24)); - return dias; - } - - function limpiarForm() { - document.getElementById("formAlquiler").reset(); - } + const difFechasDias = (fechaIni, fechaFin) => Math.ceil((new Date(fechaFin) - new Date(fechaIni)) / (1000 * 60 * 60 * 24)); + const limpiarForm = ()=> document.getElementById("formAlquiler").reset();