How do we work with JavaScript?
This is all well and good, but as we mentioned before, it so happens that the JavaScript version available almost everywhere isn’t ES13, but rather the earlier JS5. An exception to this is Node.js. It is based on Chrome’s V8 high-performance JavaScript engine, which already has several ES13 features available. Nonetheless, at the time of writing, ES13 coverage isn’t 100% complete, and there are features that you will miss. (Check out nodejs.org/en/docs/es6/ for more on Node.js and v8.) This is surely changing since Internet Explorer is fading away (support for it ended in June 2022), having been replaced with Microsoft’s Edge browser, which shares Chrome’s engine. In any case, we must still deal with older, less powerful engines.
If you want to be sure of your choices before using any given new feature, check out the compatibility table at kangax.github.io/compat-table/es6/ (see Figure 1.1):