+ 6
Is ECMAScript 6+ relevant this year?
I am starting to learn it but due to its compatibility issue like most of the browsers does not support some ECMAScript6+ syntaxes, I am having a doubt if I could use it this year but I'm still studying. If ever in case, how'd you get rid of the issue?
4 ответов
+ 5
Getting more phones support ES6 now, there are better JavaScript language, you should use it now.
Don't worry about old phone compatibility issue, you always can use Babel.js to transpiler ES6 to support old JavaScript.
+ 5
Thanks Calviղ!
+ 4
Regarding support of ES6+ features for
- compiler/polyfills like babel
- desktop browsers
- phone browsers
- or runtime environment like Node
this page is quite helpful http://kangax.github.io/compat-table/es2016plus/
for ES6+ important to use the latest babel version to transpile features like destructuring.
It takes 3 to 4 years for new ES versions to set by all vendors, ES6 is out more than 3 years so its supported really well.
Off course Internet Explorer will always remain a problem.
+ 1
My codes use ES8 async/await functions, has no worry about compatibility issues.