local storage getItem returning old value code example Example: javascript get local storage var Item = localStorage.getItem('youritem');