I have an array stored in localStorage. How can I remove the value of an array and save it in localStorage again?
var cars = ["Saab", "Volvo", "BMW"];
localStorage.setItem("cars", JSON.stringify(cars));
let modifiedCars = JSON.parse(localStorage.getItem("cars")).splice(0, 1)
// How do I remove cars[0] from the array and store it back into localStorage?