how to get local storage object in JS code example Example: javascript get local storage var Item = localStorage.getItem('youritem');