Week 6 - Task 2
Shopping list
Make an input field (HTML)
Make a two buttons, one called "Add" and another called "Clear" (HTML)
Make an output section (HTML)
Functionality:
When you press the button:
the value of the input field should be added to an array
the value of the input field should be cleared after it's added
the values of the array should be displayed in the output section
by using a for-loop as in the w3schools example
Example of how a solution might look like:
GIF