LocalStorage as it's called, it's local storage for the browsers, it can save up to 10MB, SessionStorage does likewise, yet as its name saying, it's session based and will be deleted after closing your browser, additionally can store less then LocalStorage, as up to 5MB. However Cookies are extremely small data storing in the browser, that can save up 4KB and can be accessed to through server or browser both.

Best answer