Dec 17, 2011web development tutorial has shared the link and says "JavaScript Cookies are a great way to save a user's preferences in his / her browser. This is useful for websites and users both, if not used to steal privacy."
Dec 17, 2011web development tutorial has shared the link and says "When a browser opens a web page, the browser reads the cookies (provided it has already stored it) that has stored in your machine. We used document.cookie to retrieve the information about the cookie"