← Back to CoursesWeb Design & Development: Intermediate

Neuroanatomy Explorer

Drag to rotate · scroll to zoom · click regions to explore

View
Loading 3D model…

Click a region
to explore it

Memory Deck

Flip each card and rate whether you knew it. Your score is saved.

Term
Definition

Deck complete — score saved.

Match the Pairs

Match each term to its definition. Finish the board to earn your score.

All matched — score saved.

Concept Constellation

Every key idea in this course, mapped as an explorable 3D constellation. Drag to rotate, scroll to zoom, click a node.

Click a node to read its definition.

Browser APIs, Storage, and Client-Side State

Manual: General · Subject: Web Design & Development

Work with local storage, session data, and browser capabilities to build richer experiences.

State in the browser

Why client-side state exists

Many applications need to remember preferences, selections, or progress without immediately contacting a server. Browser storage and APIs make this possible, but each option has different persistence, scope, and privacy implications.

Local storage and session storage

localStoragelocalStorage persists across browser sessions, while sessionStoragesessionStorage lasts until the tab or window is closed. Both store string data, so complex structures usually need serialization such as JSON.

⚠️

Privacy caution

Do not store sensitive data in client-side storage unless you fully understand the risk model and need.

Other useful browser capabilities

APIs beyond storage

Browsers expose APIs for history management, geolocation, clipboard access, notifications, and more. Each capability should be used sparingly, with user consent and clear purpose.

Which storage option typically survives browser restarts?

Why is JSON commonly used with browser storage?

State design

Keep a clear separation between transient UI state, persistent user preferences, and server-owned data. This prevents confusion about where truth lives and how updates should propagate.

What is a common drawback of storing too much state in the browser?