Photo by Sigmund on Unsplash

The TypeScript team is going to kill JavaScript

Crizant Lai
CodeX
Published in
2 min readMar 12, 2022

--

When you read this title, you must be thinking: The TypeScript team is making some new features to attract developers so that no one will ever code plain JavaScript anymore? No.

A few days ago they have published a blog:

In short, they are proposing a “type syntax” for the future JavaScript standard which works very similar to what TypeScript has always been doing:

function add(a: number, b: number) {
return a + b;
}

What it does:

  1. The IDE extensions/tools can run static analysis based on the provided type
  2. The types will be completely ignored on browser/JavaScript runtime

Adding this syntax to the JavaScript standard, according to the TypeScript team, brings the following advantages:

  1. The “typed” code can be run on browsers directly without being transpiled (by tools like Webpack)
  2. Therefore developers who would like to code “typed” JavaScript can skip the “build” step which now is a must

--

--

Crizant Lai
CodeX
Writer for

A TypeScript/Flutter developer who love technical stuffs.