Throughout the module (and your journey to Google enlightenment while working on IdeaBox2.0) you may notice a few different ways that JavaScript code is being written.
That might have something to do with something called ES6
and ES5
-
What is
ES6
? -
ES2015 (ES6) stands for ECMAScript 2015. ECMA is the governing body that proposes new features to JavaScript and keeps it up to date. ES2015 is the latest stable release which introduced many new features such as arrow functions, the class keyword and const & let. At this time not every browser fully supports the latest features so we would have to use a transpiler like babel to transpile our new ES6 code down to browser compatible ES5.
-
What is Transpilation and how does it relate to
ES6
? -
Traspilation is the process of taking ES6 code that may not be fully compatibale on every browser, and converting it down to ES5 which is supported by every major browser.
-
Looking at the ES6 Features link below, discuss one update from
ES5
and if it seems useful/superfluous, -
The
let
keyword allows you to decalre are block variable which has been desperately needed in JS for awhile. It definitely helps withfor
loops and using variables in a way that is parallel to other languages.