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
?- ES6 aka EcmaScript 6 or EcmaScript 2015 is a 'language specification' that JavaScript is built off of.
- What is Transpilation and how does it relate to
ES6
?- Transpile is a mix of translation and compile. Transpilation is a process that is necessary when writing in ES6 syntax due to incompatibility amongst web-browsers. Some browsers support ES6 whereas some do not. For some browsers the code needs to be translated and compiled as ES6. Babel is a popular transpiler.
- Looking at the ES6 Features link below, discuss one update from
ES5
and if it seems useful/superfluous,- In my opinion, using
let
andconst
is going to be extremely useful. They allow for block-scoped variable assignment.let
is just a new version ofvar
, whereasconst
is a completely new addition that prevents use before assignment
- In my opinion, using
Great definition of Transpilation 👍