1.

In localStorage object data ________(a) is deleted after the browser has been closed(b) is not deleted after the browser has been closed(c) can be seen but can not edit(d) can be seen as well as editI had been asked this question in an interview.I'd like to ask this question from Web Storage in portion HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

Answer»

The correct choice is (b) is not deleted after the browser has been closed

Easiest explanation: Data with no EXPIRATION DATE is stored by localStorage object. Here the data is not deleted if we CLOSE the browser. We can have data at the next day or WEEK or YEAR. Syntax is



Discussion

No Comment Found

Related InterviewSolutions