Browsers and ES6

Asked

Viewed 44 times

2

I am starting my studies in ES6 and my course is 2018, I would like to know if the browsers already support the technology or is still necessary the use of the compilers?

1 answer

4


Most modern browsers already support Ecmascript 2015 (alias ES6) natively, in addition to later versions. However, there is no guarantee that all your users will always use browsers that support this type of newer feature.

So it’s always ideal that you serve Javascript code that at least can be supported by the most commonly used browsers (which includes some older ones, like IE 11, which are still unfortunately used by many people).

So if you’re programming for the web, it’s almost always writing Javascript code using only features prior to ES6, that is, ES5 or earlier. In case you use more modern features, you can use transpilators like Babel.

To learn more about compatibility, see this compatibility table.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.