ES6 Miscellaneous

There are many new keywords in ES6. Some of them are listed below with examples.

let


The keyword let can be used to bind variable to a scope. It is different from var because let defines a variable in the block scope.

const


The keyword const is used to bind and initial a variable in a block scope. The variable becomes a constant in that scope and its value cannot be changed after that.

Follow the links and find the usage of the other new keywords listed below.

  1. class
  2. export
  3. import
  4. yield
Share