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
? - It's the newest standard for EMCAscript - an update from ES5, which is ~5 years old.
- What is Transpilation and how does it relate to
ES6
? - Transpilation is the process of taking one version of a language and making it compatible with other versions of that langues. With ES6, for instance, developers who want to start writing in ES6 before major browsers adopt it, can do so by transpiling their code from ES6 -> ES5. It's my understanding that Babel is used specifically for transpilation tasks like this.
- Looking at the ES6 Features link below, discuss one update from
ES5
and if it seems useful/superfluous, - String interpolation/concatenation looks to be incredibly useful. Instead of throwing in "My string" + ..... and so on, we can use backticks and inline interpolation to do the same thing (i.e.
this is my string with a ${newVar} variable
)
👍