Javascript » Data » Add new items to an Array
👉 User Story:
As a user
I should be able to add items to my todo list
The architecture of this solution should be something like:
- click a button to initiate the the action
- generate a new piece of text like
item n.3
- add the new text into the array
- render the new data
- empty the existing list
- add all the items from the array
You can try things out directly on this pen:
https://codepen.io/marcopeg/pen/OJJEoBa
✅ Proposed Solution:
Don't run this unless you gave a very good effort to solve it yourself!