feat: implement task addition functionality with input validation

This commit is contained in:
2026-05-25 12:14:49 -03:00
parent 110ed42897
commit 927173b159
2 changed files with 18 additions and 1 deletions

View File

@@ -8,7 +8,10 @@
</head>
<body>
<h1>Ejercicio 2</h1>
<label for="task">Crea una nueva tarea:</label>
<input type="text" id="task" name="task">
<button id="addTask">Agregar tarea</button>
<ul id="taskList"></ul>
<script src="ejercicio2.js"></script>
</body>
</html>