Git Product home page Git Product logo

estimate-refactor's Introduction

Instructions

In order to run answers.js there are a number of requirements before proceeding.

Because node does not come out-of-the-box with es6 syntax, you need to use a transpiler to use the newest features.

This demonstration assumes the use of the latest node version. For my development environment, I am using node v8.4.0 If this is not the case, please upgrade to ensure consistency.

In order to use es6 syntax, the transpiler I have decided to use is babel.

In order to maintain the current level of dependencies in the repository, I have decided to use babel from the terminal, install the babel-cli by typing: npm i -g babel-cli

To start, type:

git clone https://github.com/startupdevs/node-basic-test-herminio_garcia.git

then cd into the newly cloned directory with:

cd node-basic-test-herminio_garcia

In your terminal, type in the following command:

babel-node --presets es2015 answers.js

The output should match the following:

1000

1

110

1 of 10

2 of 10

3 of 10

4 of 10

5 of 10

6 of 10

7 of 10

8 of 10

9 of 10

10 of 10

{ counter: 100 }

estimate-refactor's People

Contributors

hermano360 avatar

Watchers

James Cloos avatar  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.