InterviewHubPRO
Section Overview
Q41

Question 41 of 521

Part 1: Core Objects, Prototypes, Functions & Scope (1 - 53)

8%
JavaScript Internals (521 Qs)•Part 1: Core Objects, Prototypes, Functions & Scope (1 - 53)

What is a Cookie

A cookie is a piece of data that is stored on your computer to be accessed by your browser. Cookies are saved as key/value pairs. For example, you can create a cookie named username as below,

javascript
document.cookie = "username=John";

Screenshot