These can be explained as follows :
Local storage allows data storage with no expiration date and offers the most substantial maximum storage limit.
Session storage stores the data associated with a session. When the user closes the tab or browser, the data disappears.
Cookies are reserved mostly for server-side reading, storing data sent back to the server. The data size must be less than 4KB.