Vidyalelo
JavaScript · Q180

Document Object Model And Event Handling

Programming · JavaScript · question 180

Q180

Which is the method to look up the objects for a range of keys?

A.
lookRange()
B.
openCursor()
Answer
C.
lookall()
D.
None of the mentioned

Answer: Option B

Solution

Answer: Option B
Solution:
If you want to look up the objects for a range of keys, you create an IDBRange object and pass it to the openCursor() method of the object store.