I am new to Javascript, is there a way to store data in an array and be able to access it later. Example :
I have created an array
- If I click on my HTML file button (add a question), a function generates a random Id for a question block (like id="13819").
- It is then added to an array of question Id's
- Once the function is done running, does the Id stay in the array once added? Or does the array reset when the function called again?
- If it does reset, how do you make it to not reset?