Code Monkey home page Code Monkey logo

es6-exercise's Introduction

ES6 exercise

The goal of this exercise is to practice some cool ES6 features by doing TDD. This kind of practice is known as koans.

To solve this kind of exercise you don't have to know unit testing, since you won't write any test and the output of the tests will be rendered in the terminal. However, it might be helpful for some people to look at the test itself to understand what has to be implemented in every case.

Get started

If you have yarn: git clone [email protected]:leanjscom/es6-exercise.git && cd es6-exercise && yarn install

If you have npm: git clone [email protected]:leanjscom/es6-exercise.git && cd es6-exercise && npm install

Exercise

  • run npm test or yarn test, by default it will run all the tests.
  • We recommend you to start by running just one file, for instance:
    • npm run test -- src/01* will run just this test 01_destructure.test.js.
    • npm run test -- src/02* will run just this test 02_rest-operator.test.js.
    • and so on
  • You can fix them in any order, but we recommend you to start from test 01, then 02, and so on.
  • Once all the tests pass, you'll be an ES6 expert! :)

Learning objectives

  • Understand the features of JavaScript ES6 that are essential to working with React

Useful references

Here are links to the docs where the points covered are addressed:

You can also check out this list of more in depth articles on ES6: https://hacks.mozilla.org/category/es6-in-depth/

es6-exercise's People

Contributors

alexlobera avatar crismoreno avatar ric9176 avatar wisteria-hill-technologies avatar

Stargazers

Roman avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.