let fruits = [
{ name: 'apple', color: 'red', number: 1 },
{ name: 'orange', color: 'orange', number: 2 }
]
localStorage.setItem("saved_fruits", JSON.parse(JSON.stringify(fruits)));
function set(){
var sendJSON = JSON.stringify(allMovie);
localStorage.setItem('allMovie',sendJSON)
}
function get(){
var getJSON = localStorage.getItem('allMovie');
if (getJSON){
allMovie = JSON.parse(getJSON)
}
}
// SET
localStorage.setItem('myCat', 'Link');
// GET
let aValue = localStorage.getItem('myCat');
localStorage.getItem('data')
localStorage.setItem('token', 'token here');
localStorage.removeItem('token');
function populateStorage() {
localStorage.setItem('bgcolor', 'red');
localStorage.setItem('font', 'Helvetica');
localStorage.setItem('image', 'myCat.png');
}
localStorage.setItem('bgcolor', 'red');
function set(){
var sendJson = JSON.stringify(arrayName);
localStorage.setItem('key',sendJson)
}
localStorage.setItem("mytime", Date.now());
storage.setItem(keyName, keyValue);
localStorage