Writing Runtime Safe JavaScript

Let’s face it: writing bug-free JavaScript code is hard.
There are some programming languages that aim to guarantee that if a program compiles, it works without runtime errors (Haskell, Elm, Idris, etc).
Avoiding runtime exceptions has always been an incredible challenge for developers, and with a weakly and dynamically typed language such as JavaScript, that’s even harder.