CodingNic

Browser APIs

Module Overview

Browser APIs 5 min read

Module Overview

Browser APIs

The DOM and events cover the page itself. Browsers also expose a set of separate features JavaScript can use: saving data between visits, reading the user’s location, working with the clipboard, and more. This module is a tour of the ones you’ll actually use.

Why This Matters

Most real applications need to remember something between visits, or use a device feature the DOM alone can’t reach. These APIs are how, and they all follow a similar shape once you’ve learned a couple of them.

What You’ll Learn

  • Saving data in the browser with local storage and session storage
  • Reading and writing cookies
  • Requesting the user’s location with the Geolocation API
  • Reading from and writing to the clipboard
  • Showing system notifications
  • What a web worker is, and why it exists
  • A first look at the Canvas API

Outcome

By the end of this module, you’ll know which browser feature to reach for when a project needs to remember something, ask for permission to access something, or draw something.

Let’s get started.