Skip to content

Instantly share code, notes, and snippets.

@matthewrpacker
Forked from anonymous/es6-research.markdown
Created October 6, 2016 22:06
Show Gist options
  • Save matthewrpacker/0b85b2c028d0a783be9bb41253168564 to your computer and use it in GitHub Desktop.
Save matthewrpacker/0b85b2c028d0a783be9bb41253168564 to your computer and use it in GitHub Desktop.
Length Points Week
15 minutes 5 Week 1

ES6 Research

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

Deliverable

  • Fork This Gist
  • Respond in your forked gist with answers to the following questions
    • What is ES6?
    • What is Transpilation and how does it relate to ES6?
    • Looking at the ES6 Features link below, discuss one update from ES5 and if it seems useful/superfluous
  • You can use the resources below or your own Google-fu

Resources

@matthewrpacker
Copy link
Author

matthewrpacker commented Oct 9, 2016

What is ES6?
ECMAScript 6 (ES6) is the sixth edition release of ECMAScript (JavaScript).

What is Transpilation and how does it relate to ES6?
Transpilation is the translation of source code from one language to another, or to another version of the same language. This is done through the use of a transpiler. For JavaScript, Babel would be considered a transpiler that translates ES6 source code to ES5 for specific environments where ES6 does not yet run properly.

I found this to be a good introductory article: https://scotch.io/tutorials/javascript-transpilers-what-they-are-why-we-need-them

Looking at the ES6 Features link below, discuss one update from ES5 and if it seems useful/superfluous.
Template Strings:
This seems super useful. Rather than just concatenating a bunch of strings and variables, we an simply interpolate variables using the ${var} syntax

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