Home » HTML » Html miscellaneous » Question
  1. Which of the following returns a number of value pairs?
    1. storage.setItem(key,value)
    2. storage.key(n)
    3. storage.clear()
    4. storage.length
    5. None of these
Correct Option: D

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.



Your comments will be displayed only after manual approval.