subject

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

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 21:50, IdkHowToDoMath
Given int variables k and total that have already been declared, use a while loop to compute the sum of the squares of the first 50 counting numbers, and store this value in total. thus your code should put 11 + 22 + 33 + + 4949 + 50*50 into total. use no variables other than k and total.
Answers: 2
image
Computers and Technology, 23.06.2019 09:00, vetterk1400
Design a class tictactoe that: holds the following information about the game: two-dimensional array (3 by 3), and winner. add additional variables as needed. includes the functions to perform the various operations on objects. for example, function to print the board, getting the move, checking if move is valid, determining if there is a winner after each move. add additional operations as needed. includes constructor(s). write the functions of the class, and write a program that uses the class. the program should declare an object of type tictactoe. the program will create the board and store it in the array. the program will allow two players to play the tic-tac-toe game. after every valid move update the array, check if there is a winner. if there is no winner and no tie, then print the board again to continue.
Answers: 2
image
Computers and Technology, 23.06.2019 12:30, umimgoingtofail
What is the difference between the internet and the world wide web?
Answers: 1
image
Computers and Technology, 24.06.2019 17:00, rosepetals2938
Carlos, an algebra teacher, is creating a series of powerpoint presentations to use during class lectures. after writing, formatting, and stylizing the first presentation, he would like to begin writing the next presentation. he plans to insert all-new content, but he wants to have the same formatting and style as in the first one. what would be the most efficient way for carlos to begin creating the new presentation? going under the file tab and opening the first presentation, deleting all content from each page, and adding new content going under the file tab and clicking on new in the left pane, then choosing new from existing going under the design tab and clicking on themes, then selecting the theme that was used for the first template going under the design tab and opening the template that was created for the first presentation
Answers: 2
You know the right answer?
Project Task You will be building a full todo list in the browser. It should be able to add todos,...

Questions in other subjects:

Konu
English, 24.11.2021 04:00
Konu
Mathematics, 24.11.2021 04:00