O
O
OnYourLips2015-12-03 11:48:08
JavaScript
OnYourLips, 2015-12-03 11:48:08

What are the benefits of the new JavaScript ES6 standard over TypeScript?

The situation is simple: both technologies are not supported by modern browsers and require a preprocessor.
However, TS does what ES6 can do, and a bit of what ES7 can do.
In addition, the optional strong static typing greatly facilitates the work and reduces the likelihood of errors.
At the same time, the principle of working with them is the same.
Does it make sense to use ES6?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
R
rumkin, 2015-12-03
@OnYourLips

JavaScript is a standard developed and maintained by many companies, including industry giants. TypeScript is a product of one company. The first is more common, which means it is easier for him to find literature, libraries, like-minded people / developers. In the near future, most browsers will fully support ES6, and the need to use a translator will disappear. For TS, a translator will always be needed.
For several years in a row, quite a lot of programmers wrote in coffee script, but at some point its popularity began to decline, when many features of the language migrated to the standard, and then to browsers. What is clearly seen on the graph .
Most likely the same will happen with TS.

S
Sergey, 2015-12-03
Protko @Fesor

However, TS does what ES6 can do, and a bit of what ES7 can do.

babel can do everything from ES7 that TS can, well, if that babel has the maximum coverage of features of new standards.
There is. Actually, now it makes little sense NOT to use ES6, in principle, if the transpiler supports features from ES7 (stage-2 at least), then you can also use it if it increases development speed and code maintainability.

S
sim3x, 2015-12-03
@sim3x

ES - standard
JS TS - superset of JS, on which buns for ES are tested
Yes, it has

S
sanex3339, 2015-12-03
@sanex3339

It makes sense to use TypeScript + ES6 and overtake the whole thing with babel in es5

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question