javascript-tutorial / en.javascript.info

Modern JavaScript Tutorial

Home Page:https://javascript.info

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Typo in IndexedDB example

lexara-prime-ai opened this issue · comments

There might have been a typo or perhaps an update was made to the documentation but not on the example

Example Code Snippet

async function init() {
  db = await idb.openDb('booksDb', 1, db => {
    db.createObjectStore('books', {keyPath: 'name'});
  });