function get(){
var getJson = localStorage.getItem('key')
if(getJson){
arrayName = JSON.parse(getJson)
}
}
// STRING
// localStorage --> key : 'A'
let a = localStorage.getItem('KEY'); // a = 'A'
// ARRAYS
let arr
function getLocalStorage(){
const get = localStorage.getItem("KEY")
if (get){
arr = JSON.parse(getLocalStorage)
}
// localStorage--> userName: 'jon'
var userName = localStorage.getItem('userName');
// userName --> jon
//The following snippet accesses the current domain's local Storage object
//and adds a data item to it using Storage.setItem().
localStorage.setItem('myCat', 'Tom');
//The syntax for reading the localStorage item is as follows:
const cat = localStorage.getItem('myCat');
//The syntax for removing the localStorage item is as follows:
localStorage.removeItem('myCat');
//The syntax for removing all the localStorage items is as follows:
localStorage.clear();
var pull=JSON.parse(localStorage.getItem('data'))
for(var i=0; i<pull.length; i++){
new arrayName(pull[i].AnyName, pull[i].AnyName, pull[i].AnyName)
localStorage.getItem('bgcolor');
var pull=JSON.parse(localStorage.getItem('data'))
for(var i=0; i<pull.length; i++){
new ConstrcterName(pull[i].AnyName, pull[i].AnyName, pull[i].AnyName)
}
for(var o=0; o<arrayName.length; o++){
ArrayName[o].getRandom();
ArrayName[o].showRow();
var aValue = storage.getItem(keyName);