function handleToDoSubmit(event) {
    event.preventDefault();
    const newTodo = toDoInput.value;
    toDoInput.value = "";
    const newTodoObj = {
        text: newTodo,
        id: Date.now(),
    };
    toDos.push(newTodoObj);
    paintToDo(newTodoObj);
    saveToDos();
}
// Add it to the list, save it to DB, and output the list.
Add it to the list, save it to DB, and output the list.
Add it to the list save it to DB and output the list .
function handleToDoSubmit(event) {
    event.preventDefault();
    const newTodo = toDoInput.value;
    toDoInput.value = "";
    const newTodoObj = {
        text: newTodo,
        id: Date.now(),
    };
    toDos.push(newTodoObj);
    paintToDo(newTodoObj);
    saveToDos();
}
function handleToDoSubmit ( event ) { event . preventDefault ( ) ; const newTodo = toDoInput . value ; toDoInput . value = "" ; const newTodoObj = { text : newTodo , id : Date . now ( ) , } ; toDos . push ( newTodoObj ) ; paintToDo ( newTodoObj ) ; saveToDos ( ) ; }
Add it to the list, save it to DB, and output the list.
Add it to the list save it to DB and output the list .