The browser

This part is the browser side of the same language: the DOM from a typed querySelector to a node that is created and added, events and one delegated listener, fetch inside the page, a form with validation, and the storage a page keeps between visits.

76 DOM basics querySelector with its type, the null it can return, text changed, a node added Open 77 DOM events addEventListener, the event target typed, one delegated listener, and cleanup Open 78 Fetch in browsers fetch a JSON GET, POST a form, check ok before parsing, abort a slow call Open 79 Forms typed input values, validation on submit, an error next to its field, preventDefault Open 80 Web storage localStorage as strings, a fallback on read, JSON for an object, sessionStorage per tab Open

Lessons