Explain the difference between `localStorage`, `sessionStorage`, and cookies in HTML5.

Instruction: Describe the functionalities and differences of `localStorage`, `sessionStorage`, and cookies.

Context: The question tests the candidate's knowledge of client-side storage mechanisms provided by HTML5 and their ability to distinguish between them in terms of scope, lifecycle, and capacity.

Upgrade to view answer

Related Questions