Sure. The final project of this course involves creating a "to do" list. There will be buttons to load/save the list to local storage, so that you can close your browser w/o losing the list.
No; it sets them as global variables in the browser tab. That's non-persistent (called "volatile") storage.
Sure. JSON is the notation we've been learning all along:
[ val0, val1, val2, ... , val ]
{key: val, key: val, ... key: val}
The JSON.stringify()
function takes a data structure and turns it into a string.
The JSON.parse()
function takes a string and attempts to parse it into a data structure.
Wow! That's a wonderful but very sophisticated question. I'm going to punt on it for now, but I encourage you to come talk to me in office hours.