1var taskInput = document.getElementById('newTask');
2var addTaskButton = document.getElementById('addTaskButton');
3var incompleteTasks = document.getElementById('toDo');
4var completedTask = document.getElementById('completedTasks');
5
6var addTask = function () {
7 var text = taskInput.value;
8 var li = '<li>' + text + '<li>';
9 incompleteTasks.appendChild(li);
10
11}
12
13addTaskButton.onclick = addTask;
14