Skip to content
05The Code Museum

View source

Thirteen chapters in how the Web was built, each with a working example you can edit. Your code runs in a sandboxed frame with no access to this museum, your storage or your cookies.

2017 onward

WebAssembly

WebAssembly is a compact binary format that browsers run at near-native speed. It shipped across major browsers in 2017 and became a W3C Recommendation in 2019.

This example builds a 41-byte module by hand — a single function that adds two numbers — and calls it from JavaScript.

Tab inserts spaces · press Esc then Tab to leave the editor

Live preview · sandboxed

The preview iframe uses sandbox="allow-scripts allow-modals" without allow-same-origin: scripts run, but in an opaque origin isolated from Webvolution.