Computers and Technology, 27.04.2021 15:20, TonyHaas07
Project Task
You will be building a full todo list in the browser. It should be able to add todos, check todos off as complete, and delete todos.
Display a form to the user to add todos.
When a user types a todo into the form and hits submit, the following should happen:
A new todo should be displayed below any previous todos
Every todo in the list should have a check button next to it to check off the todo and mark it complete
Clicking the check should change the todo in someway, either marking it green or perhaps crossing it out. Check out this link here (Links to an external site.) for some inspiration.
Every todo should have an x to the right that will delete the todo.
Clicking the x should remove the todo from the page.
You'll need to attach a submit event listener to todo form and click event listeners to the check and x for each todo.
Your JavaScript code will form the conditional logic to determine whether a todo should be displayed as complete or incomplete.
Recommended Implementation:
Individual todos should be represented in an object with a text key and a complete key (the complete key should be a boolean true or false).
Individual todo objects should be stored inside an array, making an array of objects.
Representing the above in your JavaScript makes the project much easier rather than stressing about the HTML and the click events
Answers: 2
Computers and Technology, 23.06.2019 14:30, qveenvslayin
The basic work area of the computer is it screen that you when you first fire up your computer
Answers: 1
Project Task
You will be building a full todo list in the browser. It should be able to add todos,...
Mathematics, 29.07.2020 21:01
Mathematics, 29.07.2020 21:01
Mathematics, 29.07.2020 21:01