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 is the most recent update to JS - 2015. It was last updated in 2009!
- What is Transpilation and how does it relate to
ES6
?- Transpilation is the process of converting the source code of one programming language and converting it into the equivalent source code of another language (thanks, Wikipedia!). This is relevant to ES6 because not all browsers support the newest syntax...Babel is a compiler that allows you to use the newest syntax in your projects - Rails projects included!
- Looking at the ES6 Features link below, discuss one update from
ES5
and if it seems useful/superfluous,
- String interpolation - Coming from Ruby, this seems pretty cool...however it is probably more of a convenience thing than something that is going to be groundbreaking.
- Classes seem like a significant change in JS. Coming from OOP in Ruby, I'm looking forward to learning how to write them and use them in my code.