The name read-only property of the DataStore interface returns the name of the current data store.
Syntax#
Value#
A DOMString.
Example#
The following example gets all the data stores on the device called "contacts", then logs the data store name to the console: