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 (ECMAScript 6) is the 6th version of Javascript that is updated regularly and also known as 'Harmony.'
- What is Transpilation and how does it relate to
ES6
?- ES6 code is not necessarily transferrable across all browsers and platform so transpilation is necessary. Transpilation means taking ES6 and translating it into readabel code for other machines. Traceur and Babel are both toos used to translate the client side JS code into compatible languages.
- Looking at the ES6 Features link below, discuss one update from
ES5
and if it seems useful/superfluous,- While checking out the template strings section, some of the first words used were 'syntatic sugar' so I was happy. Us rubyist would be more familiar with this being similar to string interpolation.
Ex. // Basic literal string creation
In JavaScript '\n' is a line-feed.
👍 Sugar!