Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Which of the following is invoked when it is not fired on window object?

a) removeItem()
b) clear()
c) setItem()
d) getItem()

Answer: d
Explanation: When removeItem(), clear() and setItem() are invoked the events are fired on window object, which accesses newly stored or removed data, as defined by LocalStorage and sessionStorage attributes, getItem(key) method returns the current value associated with the key.

Join The Discussion