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