The Web Storage API provides a mechanism for developers to persist key-value data associated with the current page’s origin. It’s a significant improvement to using client-side cookies to persist bits of data, typically allowing storage of up to 5 MB of data. The API is simple: localStorage.setItem(‘color’, ‘blue’) localStorage.getItem(‘color’) // ‘blue’ localStorage.removeItem(‘color’) A few…