🌐Transpiler
Also known as Source-to-Source Compiler, Transcompiler
A tool that turns code in one language into another. People can still read it.
Think of it like
Think of it like a story put into plain words. Then more kids can read it.
Example
Why it matters
It lets you write in a nicer language and still run everywhere.
Definition
Example code
typescript
// in: const total: number = 5;
// out: const total = 5;Common mistake
Key takeaways
- 1Code to code. Same level, new language.
- 2Readable output. Unlike machine code.
- 3Part of the build. Runs before you ship.