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