getitem localstorage as json code example
Example: getitem localstorage
// localStorage--> userName: 'jon'
var userName = localStorage.getItem('userName');
// userName --> jon
// localStorage--> userName: 'jon'
var userName = localStorage.getItem('userName');
// userName --> jon