Home »
MCQs »
JavaScript IndexedDB MCQs
To close a database, we need to use which of the following function (in IndexedDB)?
8. To close a database, we need to use which of the following function?
- IDBDatabase.end()
- IDBDatabase.close()
- IDBDatabase.finish()
Answer: B) IDBDatabase.close()
Explanation:
To close a database we need to use the function IDBDatabase.close()