/index.js Secret
Created
July 25, 2020 01:11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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