-
-
Save parzibyte/a1a05dc9e372601198cd526a49aa9c6f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Escuchar clic del botón para agregar nueva tarea | |
$btnGuardarTarea.onclick = () => { | |
const tarea = $inputNuevaTarea.value; | |
if (!tarea) { | |
return; | |
} | |
tareas.push({ | |
tarea: tarea, | |
terminada: false, | |
}); | |
$inputNuevaTarea.value = ""; | |
guardarTareasEnAlmacenamiento(); | |
refrescarListaDeTareas(); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment