Question: what is the difference between local storage and cookies?
Answer: Differences between cookies and localStorage Cookies are mainly for reading server-side, whereas local storage can only be read by the client-side . Apart from saving data, a big technical difference is the size of data you can store, and as I mentioned earlier localStorage gives you more to work with.