Skip to content

Instantly share code, notes, and snippets.

@doppelgunner
Created July 25, 2020 01:11
async function runApp(name) {
const todos = [];
const done = [];
await addToTodoList(todos, 'Clean the bathroom',name);
await addToTodoList(todos, 'Wash my face', name);
await addToTodoList(todos, 'Eat my breakfast', name);
await addToTodoList(todos, 'Slep again!!!', name);
console.log('todos', todos)
//let's mark the todo list as done
await doneTodoList(done, todos[0], name);
await doneTodoList(done, todos[1], name);
await doneTodoList(done, todos[2], name);
await console.log('done', done)
let remaining = await getRemainingTodos(todos, done, name);
console.log('remaining', remaining);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment