Skip to content

Instantly share code, notes, and snippets.

@julsfelic
Forked from rrgayhart/es6.markdown
Last active May 10, 2016 22:05
Show Gist options
  • Save julsfelic/9063d19cfa1cbae84ac00b6d8c2a9931 to your computer and use it in GitHub Desktop.
Save julsfelic/9063d19cfa1cbae84ac00b6d8c2a9931 to your computer and use it in GitHub Desktop.
es6 - 1510

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?

  • ES2015 (ES6) stands for ECMAScript 2015. ECMA is the governing body that proposes new features to JavaScript and keeps it up to date. ES2015 is the latest stable release which introduced many new features such as arrow functions, the class keyword and const & let. At this time not every browser fully supports the latest features so we would have to use a transpiler like babel to transpile our new ES6 code down to browser compatible ES5.

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

  • Traspilation is the process of taking ES6 code that may not be fully compatibale on every browser, and converting it down to ES5 which is supported by every major browser.

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

  • The let keyword allows you to decalre are block variable which has been desperately needed in JS for awhile. It definitely helps with for loops and using variables in a way that is parallel to other languages.

Resources:

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