Skip to main content

πŸ““ Introduction to ES6

JavaScript development is in a constant state of evolution. A big part of being a JS developer is keeping up with changes to popular libraries, frameworks, and the language itself. Frameworks that were popular a few years ago (such as backbone.js) are quickly replaced by cutting edge frameworks (like react.js). Node modules become outdated and deprecated. Libraries are in a constant state of churn.

ES6 adds new functionality to JavaScript. (Remember, ECMAScript is the β€œofficial” name for JavaScript.) ES6 is also called ES2015, because it was released in 2015. Much of this functionality has since been widely adopted by JavaScript developers.

We've actually already been using one of the most important ES6 features since we first started using JavaScript: let and const (instead of var). In the next few lessons, we'll cover some of the most popular ES6 features, including arrow notation, the class keyword, and template literals.

We'll also learn about other ES6 features in this course section and the next. For example, an ES6 feature that we'll learn about in the next course section is promises, which help us manage asynchronous code. Promises are a great example of how functionality gets incorporated into JavaScript. Until ES6, developers had to use libraries like Promise.js and Bluebird.js if they wanted to add this functionality to their applications. However, promises proved to be so popular that they were added to native ECMAScript functionality in ES6.

By the end of Intermediate JavaScript, you'll be able to use the following ES6 features:

  • Importing and exporting modules with import and export statements.
  • The class keyword to create object types.
  • Arrow notation to create a function expression.
  • Template literals to use variables in strings.
  • Promises, which we'll cover in the next course section.

You're also encouraged to explore other ES6 features on your own. You can learn more about ES6 features here.