Home » Interview » Technology

Differentiate between localStorage and sessionStorage objects.

Correct Answer: - localStorage object stores the data without an expiry date while sessionStorage object stores the data only for one session - With localStorage object, data will not be deleted when the browser window is closed while the data is deleted when the browser window closes with sessionStorage objects

← Previous Question Next Question→

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion