local storage getting items code example Example: get specific item from local storage JSON.parse(localStorage.getItem('user')).id