Learning JavaScript Data Structures and Algorithms
上QQ阅读APP看书,第一时间看更新

The compatibility table

It is important to know that, even though ES2015 - ES2017 have already been released, its features might not be supported by all browsers. For a better experience, it is always best to use the latest version available for the browser you choose to use.

At the following links, you can verify which features are available in each browser:

After ES5, the biggest ES release was ES2015. According to the compatibility table in the preceding link, most of its features are available in modern browsers. Even if some of the features of ES2016+ are not yet available, we can start using new syntax and new functionalities today.

By default, Firefox adds support for ES as their team ships the implementation of the functionalities.

In Google Chrome, you can enable these functionalities by enabling the Experimental JavaScript flag by opening the URL chrome://flags/#enable-javascript-harmony, as demonstrated in the following image:

In Microsoft Edge, you can navigate to about:flags and select the Enable experimental JavaScript features flag (a similar process to Chrome).

Even with the Enable Experimental JavaScript flag enabled, some of the ES2016+ features might not be supported in Chrome or Edge. The same can be applied to Firefox. To know exactly which features are already supported in each browser, please verify the compatibility table.