Skip to content

Instantly share code, notes, and snippets.

@brianrip
Forked from rrgayhart/es6.markdown
Last active May 19, 2016 21:09
Show Gist options
  • Save brianrip/40429d5097250fd93e9db59bd839c8d5 to your computer and use it in GitHub Desktop.
Save brianrip/40429d5097250fd93e9db59bd839c8d5 to your computer and use it in GitHub Desktop.
es6 - 1510

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 and answer the following questions:

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.

Resources:

@rrgayhart
Copy link

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment