The localStorage and sessionStorage belongs to ___________
(a) Window object
(b) Element object
(c) Hash object
(d) DOM object
(a) Window object
(b) Element object
(c) Hash object
(d) DOM object
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Correct choice is (a) Window object
For explanation: Browsers that implement the “Web Storage” draft specification define two properties on the Window object: localStorage and sessionStorage. Local storage and Session storage are the web storage objects. Session storage is destroyed once the user closes the browser whereas, Local storage stores data with no expiration date.