Differentiate between localStorage and sessionStorage objects?

0

- 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.

 

asked Apr 15, 2023 at 00:22
Sign in to add a comment

0 Answers

0
📝 No answers yet!

Be the first to answer this interview question.

Your Answer

Sign in to post your answer and help the community.