localstorage js get single item form object code example Example: get specific item from local storage JSON.parse(localStorage.getItem('user')).id