From the course: Learning App Building with Vanilla JavaScript

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Backward compatibility for vanilla JavaScript

Backward compatibility for vanilla JavaScript - JavaScript Tutorial

From the course: Learning App Building with Vanilla JavaScript

Start my 1-month free trial

Backward compatibility for vanilla JavaScript

- In recent years, JavaScript has added a lot of new syntax that enables developers to perform common coding tasks with fewer characters. These newer features, which include the spread operator and template literals are generally supported by all modern browsers. However, a significant portion of web users are running older browsers and are either using older hardware that prevents them from updating or choose not to update. To ensure that your app is usable by the widest possible set of users, it's a best practice to convert or transpile code written with newer features into an older more verbose version of JavaScript that runs on a much wider set of browsers. The newer JavaScript features are sometimes described as ES6 features, which is the name of the version of the language that was released in 2015. This was the first new version in six years and older browsers generally support the previous version known as ES5. In recent years, a new version is released each year, so ES7 is…

Contents