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 latest release of JS language specifications that allow for number of new features to improve upon ES5.
What is Transpilation and how does it relate to ES6
?
- Transpilation is the process of compiling ES6 code to become compatiable with browsers that only support ES5.
Looking at the ES6 Features link below, discuss one update from ES5
and if it seems useful/superfluous
- Passing default parameter as an argument to a function similar to Ruby is useful by not having to create multiple variables with || operators cluttering up the function. ES6 allows building classes in OOP fashion by utilizing an actual 'class'. This makes organizing logic and implementing inheritance much cleaner than in ES5. Overall, I am pleased to see that as I make my foray into JS there are many changes that are accomodating to someone with a ruby background.
👍