how to get value of a key localstorage code example Example: javascript get local storage var Item = localStorage.getItem('youritem');