Skip to content

Instantly share code, notes, and snippets.

@brantwellman
Forked from rrgayhart/es6.markdown
Last active March 28, 2016 05:44
Show Gist options
  • Save brantwellman/ceb4dd7d28919c6624fe to your computer and use it in GitHub Desktop.
Save brantwellman/ceb4dd7d28919c6624fe 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 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.

Resources:

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