So I’m working on a small project of my own in order to learn js/html/css, I’ve searched for hours but didn’t find anything,
Here’s what I wanna do:
- User inter text input “specified with an id”
- A button sends the text to a js function “carrying the same id”
- The function simply add the text into an existing array “also with the same id”
The hard part is to edit the original js file and save it as a permanent change, as when opining the page a js function takes that array elements and display them, so every single time I want to add a new element I have to edit the js file.
edit apparently it’s not possible to do this through js, or even permanently edit the js file, so what exactly should I use?