


For example, // name declared with const cannot be changed The const statement is used to declare constants in JavaScript. For example, // variable declared using let This means they are only accessible within a particular block. The variables declared using let are block-scoped. To learn more about the difference between let and var, visit JavaScript let vs var. Previously, variables were declared using the var keyword. JavaScript let is used to declare variables. This tutorial provides a brief summary of commonly used features of ES6 so that you can start quickly in ES6. ECMAScript provides the specification on how JavaScript programming language should work. JavaScript ES6 (also known as ECMAScript 2015 or ECMAScript 6) is the newer version of JavaScript that was introduced in 2015.ĮCMAScript is the standard that JavaScript programming language uses.
