What is the difference between JavaScript and ES6 and EC2015?

Actually, the question is: what is the difference between JavaScript and ES6, EC2015 and TypeScript? No one can really answer me on the merits. Why do I need TS for Angular 2?

Author: programming noob, 2016-12-18

2 answers

JavaScript is no different from ES6 and ES2015.

JavaScript is the historical name of a programming language.

ES-ECMAScript is a JavaScript specification that describes how this language should work.

ES5, ES6 are versions of this specification.

ES2015 is the second name of ES6, starting from this version, each following specification will include the year in which it was made.

TS-TypeScript is a JS-based language expanding its capabilities. Works like SCSS.

For Angular 2, TypeScript was chosen just because of its capabilities. Angular2 itself is written in TypeScript. Angular 2 applications can be written in both ES6 and ES5, but the standard Tutorial is written in TS.

 4
Author: dbellkoff, 2016-12-19 05:11:56

All languages are evolving. Javascript makes this slower because of the paravoz of browsers that need to be supported.

At the same time, very large and complex applications are written in JS, so there is nowhere to go without development. The weak typing of JS and the lack of normal OOP does not allow you to write reliable, scalable applications on it.

ES6 (ECMA2015) extends the standard with new features, such as classes.

Typescript simply implements them and allows you to write to ES6 + typed. Just try: start easy, you can write as in JS.

 0
Author: George Kiselev, 2016-12-30 10:43:32