Skip to content

Instantly share code, notes, and snippets.

@jeneve
Created July 4, 2016 03:56
Show Gist options
  • Save jeneve/b9dc0752cbc489bceb8eacdca7f68aca to your computer and use it in GitHub Desktop.
Save jeneve/b9dc0752cbc489bceb8eacdca7f68aca to your computer and use it in GitHub Desktop.
  • What is ES6?

ECMAScript is based on JavaScript and is used for client-side development. ES6 is the latest release, and includes syntax for writing classes along with new iterators.

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

transpilation is a procces that converts code from one language to another, or to another version. Babel coverts Javascript written in ES6 to ES5. This would be useful because ES6 doesn't yet run in all enviroments

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

Template strings seem super-useful, particularly coming from Ruby where string interpolation is so common --- concatenating strings is annoying and ugly.

Classes seem like something a ruby developer would jump all over, but, to be honest, I don't yet see the advantages of the new syntax over just creating Objects with functions as attributes. I'm open to loving it after I try it --- so far I haven't been very object-oriented with my JavaScript so maybe this is the answer.

Resources:

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