- Can be used to store data.
- Cookie the size of a data item cannot exceed 4KB and a maximum of 20 data items cannot be stored. If the expiration time is not set, the data item disappears after the browser is closed.
- SessionStorage is a sessionStorage. The size of a sessionStorage cannot exceed 5M. The number of sessionStorage is unlimited. Page refreshes do not erase data.
- LocalStorage the size of a localStorage device cannot exceed 5M. There is no limit on the number of localStorage devices. Data will not be lost unless the device is deleted.