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
? It's the 6th release of ECMAScript, also called Harmony, and the "proper" name for Javascript. - What is Transpilation and how does it relate to
ES6
? A transpiler is a tool that reads a source code in one language and converts it to another language. They're important because not all Javascript rooted languages are compatible with every browser, so a transpiler would convert ES6 to a version of javascript that the browser can work with - 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
Constants This was the first link that came up when I googled "ES6 changes from ES5", but I found it super interesting/impressive! The ES5 version of creating a constant was so verbose! You had to say that it was a global variable, that it was not writable and not configurable. And now you just use
const
and it's a Constant. Looks like a good change to increase efficiency.