My JavaScript Code:
// Web Storage API
// Not part of the DOM - refers to the wWindows API
// Available to JS via the global variable: window
//We do not have ti type window. It is implied:
const myArray = ["eat", "sleep", "code"];
const myObject = {
name: "Dave",
hobbies: ["eat", "slseep", "code"],
logName: function () {
console.log(this.name);
}
};
localStorage.setItem("myLocalStore", JSON.stringify(myArrat));
const storeLenghth = localStorage.length;
const myLocalData = JSON.parse(localStorage.getItem("myLocalStore"));
console.lof(storeLenghth);