It is :
array contains data
text box relates to each line of the array with an instance variable, so 0= position 0, 1 = position 1 etc
array dynamically updating with whatever is in the text box for that position
then on save : save current array in json format to local storage
on load : load array in json format from local storage
Because all data is stored in an array, you don't need to also store data as global variable. I link a text input object to a specific location in the array with an instance variable. My thought process was first to avoid global variables because you have to save and load them individually. Using an array is nice and powerful for this. Next step is to allow you up to update array data and I did this with an instance variable acting as position for the array.