By Shukant Pal

Image _Photo by [Unsplash](https://unsplash.com/@iammrcup?utm_source=medium&utm_medium=referral" rel="noopener" target="_blank" title="">Mr Cup / Fabien Barral on <a href="https://unsplash.com?utm_source=medium&utm_medium=referral" rel="noopener" target="blank" title=")

The document.cookie property allows you to store a string that will persist data across page reloads and different pages in the same domain! You can use it to save your user’s preferences without uploading them on your server.