how to set locals code example
Example 1: javascript set localstorage
// SET
localStorage.setItem('myCat', 'Link');
// GET
let aValue = localStorage.getItem('myCat');
Example 2: set localstorage
function set(){
var sendJson = JSON.stringify(arrayName);
localStorage.setItem('key',sendJson)
}