Which storage object is used for storing the data with no expiry date?
Correct answer
B. local storage
14 views
B. local storage
14 views
localStorage stores data with no expiry date: the data stays in the browser even after the tab or the browser is closed, until a script or the user clears it.
sessionStorage works the same way but is wiped when the tab closes. Both are part of the HTML5 Web Storage API and typically allow about 5 MB per origin.
For more solved questions like this one, see Computer Science MCQs on MCQsExam.com.
Not sure why the answer is B? Ask here and get an explanation.