Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

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

About

Collection of material for JS meetup

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published