


KeywordĮS6 introduced the let keyword, which allows for block-scoped variables which cannot be hoisted or redeclared. I explain the concepts of scope and the differences between let, var, and const in the Understanding Variables, Scope, and Hoisting in JavaScript resource on DigitalOcean. Variables and constant feature comparison Here is a key of most identifier names used throughout this reference. However, in this resource I'll be using let in place of var for all ES6 examples. ECMAScript versions have been abbreviated to ES1, ES2, ES3, ES5, and ES6. ECMAScript is the official name of the language. Note: A commonly accepted practice is to use const except in cases of loops and reassignment. JavaScript was invented by Brendan Eich in 1995, and became an ECMA standard in 1997. Here is an overview of some of the most common features and syntactical differences, with comparisons to ES5 where applicable. ECMAScript 2015, also known as ES6, introduced many changes to JavaScript.
