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 returns a number of value pairs?

a) storage.key(n)
b) storage.length
c) storage.setItem(key,value)
d) storage.clear()

Answer: b
Explanation: storage.length returns number of value pairs that are currently present in the list, storage.key(n) returns name of nth key from the list, storagesetItem(key,value) sets the value which is identified by key to value, storage.clear() empties the list which is associated with values.

Join The Discussion