LocalStorage
The Web Storage API allows you to store simple name/value pairs of data and retrieve these values when needed.
π Run these and look in the DevTools > Application
localStorage.setItem('location','Davidson College');
let val = localStorage.getItem("location");
console.log(val)
See this codepen to store an array or object with JSON.stringify()
See MDN for more on Client-side storage