Image for post
Image for post

TypeScript has become immensely popular as the 2018 Stack Overflow Developer Survey shows — as it became the 12th Most Popular Programming Language! This is stunning since it is a relatively new language.

Image for post
Image for post

Developers love how TypeScript addresses ES6’s type-checking weakness (JavaScript is a loosely typed programming language, meaning it does not require a variable to be defined). As a result, it makes TypeScript developers significantly more efficient since type errors are caught right when the code is written. Additionally, there is good IDE support, which includes the popular IDEs of Visual Studio Code, Eclipse, Sublime, and Atom.

Here is a basic TypeScript example where a type is set on each variable to prevent each variable from being assigned the wrong value…

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store