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
- Keep this tutorial tab and the AssemblyScript Playground side by side.
- Wait until AssemblyScript is ready.
- Copy an exercise, paste it as the whole editor, then press Ctrl+Enter (or Cmd+Enter).
- Every fence includes the
logimport andexport function main().
What this playground can and cannot do
- Can: AssemblyScript,
asc→ WASM,log/logStr, local drafts. - Cannot: npm packages, DOM, or
console.log(uselog/logStr).