From TypeScript to WebAssembly in few steps

How to build your first Program in WebAssembly

Kesk -*-
JavaScript in Plain English
4 min readDec 26, 2020

--

Photo by Pixabay

In this article, I will show you how to compile a TypeScript program to WebAssemby that prints the factorial of a number.

I will write it using TypeScript and then compile it with AssemblyScript, which compiles a strict variant of TypeScript to WebAssembly(Wasm) using Binaryen.

--

--