Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save theonlyrao/88a02b6a837a92903119baa49fad47dd to your computer and use it in GitHub Desktop.
Save theonlyrao/88a02b6a837a92903119baa49fad47dd to your computer and use it in GitHub Desktop.
ES6 Assignment
  • What is ES6?

"ES6", or ECMAScript 6, is the latest version of JavaScript. It brings multiple updates to JS.

  • What is Transpilation and how does it relate to ES6?

Transpilation is a form of compliation. Compiling takes a language and turns it into another language; transpiling takes a language and turns it into a language with the same level of abstraction.

  • Looking at the ES6 Features link below, discuss one update from ES5 and if it seems useful/superfluous.

The class update to ES6 seems like it would be useful. There is the syntactic sugar element to it - it looks more like Ruby and so I'm more comfortable with it. However, it also feels conceptually more coherent to be creating an object instead of a function since we are really trying to keep track of state. As a result, it seems like a move in the right direction.

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