Length | Points | Week |
---|---|---|
15 minutes | 5 | Week 1 |
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
- Fork This Gist
- Respond in your forked gist with answers to the following questions
- What is
ES6
? - What is Transpilation and how does it relate to
ES6
? - Looking at the ES6 Features link below, discuss one update from
ES5
and if it seems useful/superfluous
- What is
- You can use the resources below or your own Google-fu
What is ES6?
ECMAScript 6 (ES6) is the sixth edition release of ECMAScript (JavaScript).
What is Transpilation and how does it relate to ES6?
Transpilation is the translation of source code from one language to another, or to another version of the same language. This is done through the use of a transpiler. For JavaScript, Babel would be considered a transpiler that translates ES6 source code to ES5 for specific environments where ES6 does not yet run properly.
I found this to be a good introductory article: https://scotch.io/tutorials/javascript-transpilers-what-they-are-why-we-need-them
Looking at the ES6 Features link below, discuss one update from ES5 and if it seems useful/superfluous.
Template Strings:
This seems super useful. Rather than just concatenating a bunch of strings and variables, we an simply interpolate variables using the
${var}
syntax