ECMAScript 6
Sorry! Your browser is unable to load the Impress slideshow. Try reloading the page in Google Chrome or Safari.

ECMAScript 6

Run through basic new features

What is ECMAScript 6

How can I use it?

Do you feel lucky?

Better use a transpiler:

This will convert your code to ES5

Lets dig into
what's new!

The let keyword

New way of defining variables

Why do we need it?

What is it good for?

Unlike var...

let's give it a try

let's re-declare variables

Awesome

so... let is the new var, right?

Not so fast...

The const keyword

What?

The const keyword

The const keyword

Default parameters

tip: pass undefined to use default

Arrow Functions

Before:

ES6:

tip: cannot be used as object constructors

Defining object properties

Before:

ES6:

Template strings

Template strings

Template strings

Template strings

This is just the tip of the Iceberg

Hope you enjoyed it