October 27, 2018
Vanilla JavaScript is untyped by nature, some will call it “smart” because it is able to figure out what is a number or a string.
This makes it easier to run JavaScript code, it simply needs to be executed in a browser or Node.js runtime. However, its vulnerable to numerous runtime errors that can spoil your user experience.
If you’ve ever experienced the following, you would benefit from adopting a type system.
If you have an existing codebase that you wish to make bulletproof, with respect to type errors, you could try adopting Flow or TypeScript. They have a fairly similar syntax.
Written by Ian Wilson who lives and works in Cupertino building useful things.You should follow him on Twitter