0

Various transpilers are offering utilities to convert your ES6 code to ES5. Though ES6 involves lot of sugar coating features over ES5 but is there any feature of ES6 which can not be transpiled to ES5?

Ashutosh
  • 69
  • 1
  • 6

2 Answers2

0

You can find here the official ES6 Specification. Every feature has its own ES5 translation.

The "new" features available with ES6 that cannot be transpiled in ES5 are :

Val Berthe
  • 1,899
  • 1
  • 18
  • 33
  • So, Babel does not convert above mentioned ES6 features to ES5? OR does transpilers like babel do some work around? – Ashutosh Apr 25 '17 at 12:41
  • 1
    What you linked to is not the official specification. It's just a site somebody built. https://www.ecma-international.org/ecma-262/6.0/ is the official spec. Also, generators can be converted to ES5, it's just complicated: https://facebook.github.io/regenerator/ . Number and datetime formatting is implemented in https://github.com/andyearnshaw/Intl.js/ . – Felix Kling Apr 25 '17 at 16:35
0

On this web-site http://es6-features.org/, there are ES6 features and their equivalent in ES5, or written that no equiavalent

kosiakMD
  • 923
  • 7
  • 22