let db;
function openDB() {
const DBOpenRequest = self.indexedDB.open("toDoList");
DBOpenRequest.onsuccess = (e) => {
db = DBOpenRequest.result;
};
}WorkerGlobalScope: indexedDB property / notebook
WorkerGlobalScope: indexedDB property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.