This is a TypeScript course for the Swiftener TypeScript Playground. The official compiler (tsc) type-checks, then the result runs as JavaScript. Always console.log. Plain JavaScript belongs in Introduction to JavaScript.
Goal
Finish every chapter by running the copy-paste blocks. The last chapter is a typed kiosk total you can reuse.
How to take the course
- Keep this tutorial tab and the TypeScript Playground side by side.
- Wait until the compiler is ready (status is no longer loading).
- Copy an exercise, paste it as the whole editor, then press Ctrl+Enter (or Cmd+Enter).
- Always
console.loga result.
What this playground can and cannot do
- Can: TypeScript,
console.log, type errors in the output, local drafts. - Cannot: Node.js
require, installing npm packages, or relying on a network fetch. - Do not paste untyped JavaScript-only lessons here unless the chapter says so.
Sample files
sales.json— Nairobi kiosk rows