how to retrieve from local storage MDN code example
Example 1: javascript get local storage
var Item = localStorage.getItem('youritem');
Example 2: get localstorage value
localStorage.getItem('bgcolor');
var Item = localStorage.getItem('youritem');
localStorage.getItem('bgcolor');