Skip to content

Instantly share code, notes, and snippets.

@rossedfort
Forked from rrgayhart/es6.markdown
Last active February 3, 2016 16:57
Show Gist options
  • Save rossedfort/87b06b3438543ff46273 to your computer and use it in GitHub Desktop.
Save rossedfort/87b06b3438543ff46273 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?
    • ES6 aka EcmaScript 6 or EcmaScript 2015 is a 'language specification' that JavaScript is built off of.
  • What is Transpilation and how does it relate to ES6?
    • Transpile is a mix of translation and compile. Transpilation is a process that is necessary when writing in ES6 syntax due to incompatibility amongst web-browsers. Some browsers support ES6 whereas some do not. For some browsers the code needs to be translated and compiled as ES6. Babel is a popular transpiler.
  • Looking at the ES6 Features link below, discuss one update from ES5 and if it seems useful/superfluous,
    • In my opinion, using let and const is going to be extremely useful. They allow for block-scoped variable assignment. let is just a new version of var, whereas const is a completely new addition that prevents use before assignment

Resources:

@rrgayhart
Copy link

Great definition of Transpilation 👍

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