0.2: ES6


​ES6 is a modern, widely-used version of JavaScript. Every language matures over time as its maintainers release new versions. JS began with few features and has slowly added new ones.
In Coding Basics we mostly used ES5 syntax for simplicity, where ES5 is an older version of JS. In Coding Bootcamp we wish to expose students to the more advanced and modern features of JS seen with ES6. Many companies continue to use ES5 and older syntax depending on when their code was written. ES6 was released in 2015.
In frontend web development (where JS is most commonly seen), it's important to choose a JS version that is compatible across most browsers. This is because we do not control the version of JS that gets executed for our users, which depends on where the code is running, typically a user's browser out of our control. We may not know beforehand if users will access our site from iPhones or smart fridges, and on many devices users are unable to upgrade their browser.
We will not use the latest version of JS, because most devices and browsers would not support it. Instead we'll learn features of ES6, currently the most modern widely-supported version of JS.

Additional Notes

The naming of the JavaScript versions are confusing- see more here if you want to know the details.
The versions of JavaScript are tied to individual features of that version. You can see a matrix of the version and it's support in each popular platform here for ES6 and here for the latest version.
The engineering decision of which version of JavaScript to select for a given project is always a balance between the demographics of your user base and the cost of supporting an older version of the language.
For example, a cutting edge product like GitHub is more likely to have a user demographic that uses the latest version of JavaScript vs a government service website or broad consumer site like Lazada or Amazon.

Further Reading

A Brief History of JavaScript
Auth0 - Blog
Copy link
On this page
Additional Notes
Further Reading