In this project, you'll apply many of the JavaScript concepts you've learned to create a basic To-Do List application.
const taskInput = document.getElementById('taskInput');
const taskList = document.getElementById('taskList');
function addTask() {
const task = taskInput.value;
if (task) {
const li = document.createElement('li');
li.textContent = task;
taskList.appendChild(li);
taskInput.value = '';
}
}