What is a cookie?

Many of us have heard about cookies, local storage, and session storage but do you know what they are exactly?

Cookies are just small text files that are placed on your (user’s) device. They hold a very small amount of data with a max capacity of just 4KB. They are used for various purposes such as storing pages visited on a site or a user’s login information so that they do not have to re-enter their credentials every time.

Check out the below video to know more about what are cookies.