WEB STORAGE is a data structure that allows clients to store web data. A pattern for storing data as key/value pairs and retrieving data based on a key. Internally, persistent storage (Local Storage) and temporary storage (Session Storage) are separated, so that developer can use them selectively according to data persistence.
Web storage is similar to cookies in the web environment, however, there is a big difference between them.
Web Storage provides development convenience by storing structured objects and strings (However, need to check the browser compatibility)
Local Storage :
Session Storage :
Cookies store information in local and server