Introduction to AssemblyScript

How this course works, what the workbench can do, and the chapter list.

This is an AssemblyScript course for the Swiftener AssemblyScript Playground. Every script needs @external("env", "log"), export function main(), and log(...). TypeScript-the-language belongs in Introduction to TypeScript.

Goal

Finish every chapter by running the copy-paste blocks. The last chapter sums five kiosk units.

How to take the course

  1. Keep this tutorial tab and the AssemblyScript Playground side by side.
  2. Wait until AssemblyScript is ready.
  3. Copy an exercise, paste it as the whole editor, then press Ctrl+Enter (or Cmd+Enter).
  4. Every fence includes the log import and export function main().

What this playground can and cannot do

  • Can: AssemblyScript, asc → WASM, log / logStr, local drafts.
  • Cannot: npm packages, DOM, or console.log (use log / logStr).

Chapter list