For example, I have 2 arrays. One is myFavCars and one is myDislikedCars. How can I store them in local storage something like:
localStorage.setItem('myPreferences', { myFavCars: [], myDislikedCars: [] })
Is possible to store 2 different arrays in one item on local storage?