Skip to content

benjaminlees/Es6

Repository files navigation

Es6

The aim of this repo is to provide explanations and examples for new Es6 features.

A branch will be created for each feature, with the following structure:

  • .md file with a brief explanation of the feature.
  • folder for examples.
  • folder for assignments/ problems.

Douglas Crockfords Guide To Es6

Douglas Crockford is the author of JavaScript The Good Parts and is well know for his involvement in the development of the JavaScript language. In 2014 Douglas release a youtube video The Better Parts in which he discusses the good and bad parts of Es6.

In this repo we will primarily focus on the good parts that Douglas discussed.

If you wish to get familiar with all the available features please checkout this awesome repo es6features.

Douglas Crockfords The Better Parts

  • proper tail calls
  • spread/ ellipses
  • import/export
  • let/ const
  • destructuring
  • weakmap

Getting started

// -- Terminal window -- \\
git clone https://github.com/benjaminlees/Es6.git
cd Es6
npm install

We are going to use babel to convert Es6 to Es5.

To run a Es6 file using node either use node-babel by using the path to the .bin/babel-node or by globally installing babel.

If you want to experiment with es6 in the browser, visit babel's repl.it equivalent, which allows you to write es6, shows the transpiled es5 code and the output.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published