Patterns

Basics shows the language one feature at a time. Patterns shows it doing the work of a real module: running from files, handling failures as values, checking data at the edges, importing other code, and moving a hot loop into WebAssembly.

This section assumes you write JavaScript. If you are new to programming, finish Learn to Program first. It also assumes you have read Basics, or at least Hello TJS, Required vs Optional and Safety & Validation.

The chapters come in six groups, in this order: