Skip to content

Instantly share code, notes, and snippets.

@matt-stj
Forked from rrgayhart/es6.markdown
Last active February 9, 2016 17:33
Show Gist options
  • Save matt-stj/b0d73f1aa745b0b77e78 to your computer and use it in GitHub Desktop.
Save matt-stj/b0d73f1aa745b0b77e78 to your computer and use it in GitHub Desktop.
ES6 Homework

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?
  • It's the newest standard for EMCAscript - an update from ES5, which is ~5 years old.
  • What is Transpilation and how does it relate to ES6?
  • Transpilation is the process of taking one version of a language and making it compatible with other versions of that langues. With ES6, for instance, developers who want to start writing in ES6 before major browsers adopt it, can do so by transpiling their code from ES6 -> ES5. It's my understanding that Babel is used specifically for transpilation tasks like this.
  • Looking at the ES6 Features link below, discuss one update from ES5 and if it seems useful/superfluous,
  • String interpolation/concatenation looks to be incredibly useful. Instead of throwing in "My string" + ..... and so on, we can use backticks and inline interpolation to do the same thing (i.e. this is my string with a ${newVar} variable)

Resources:

@rrgayhart
Copy link

👍

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