Let's say I have two arrays: myFavCars and myDislikedCars. How can I combine them and store in local storage like this:
localStorage.setItem('myPreferences', { myFavCars: [], myDislikedCars: [] })
Is it feasible to store two separate arrays in a single item on local storage?