local storage ha code example
Example: local storage ha
function set(){
var sendJson = JSON.stringify(allPerfume);
localStorage.setItem("allPerfume", sendJson);
}
function get() {
var getJson = localStorage.getItem("allPerfume")
if (getJson) {
allPerfume = JSON.parse(getJson);
}
}