Collection of material for JS meetup
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
arrowFunctions.js
classes.js
computedProperties.js
declarations.js
exports.js
generators.js
modules.js
parameters.js
promises.js
templateStrings.js

README.md

es6-intro

Collection of material for JS meetup

Running the Examples

Since we're running the examples with a transpiler, you should be able to run them with any version of either node.js or io.js. (More on native compatibility later).

First install the babel transpiler as a global utility:

npm install -g babel

To run the examples, just run babel-node on the example you'd like to try:

babel-node modules.js
babel-node declarations.js
etc

Suggested Example Order

If you're completely new to ES6, I'd suggest looking at the examples in the following order:

  1. Parameters
  2. Template Strings
  3. Declarations
  4. Computed Properties
  5. Modules / Exports
  6. Classes
  7. Arrow Functions
  8. Promises
  9. Generators

Key Concepts

  • Backward compatibility
  • Standardization of fragmented patterns

Strict Mode

Note: ES6 modules are always in strict mode, so that's why you don't see the "use strict"; in these examples.

Online Editors

Great Resources