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();