To store an item into local storage, we call the setItem method of the localStorage object, and pass in the key and value as parameters to the method:
localStorage.setItem("foo", "bar");
Here we have provided a "foo" key, with a "bar" value.
To store an item into local storage, we call the setItem method of the localStorage object, and pass in the key and value as parameters to the method:
localStorage.setItem("foo", "bar");
Here we have provided a "foo" key, with a "bar" value.
3.143.239.44