Skip to content

Create a testing environment in NodeJS and using modern JS syntax#28

Open
hienphamlabs wants to merge 2 commits intokennymkchan:masterfrom
hienphamlabs:master
Open

Create a testing environment in NodeJS and using modern JS syntax#28
hienphamlabs wants to merge 2 commits intokennymkchan:masterfrom
hienphamlabs:master

Conversation

@hienphamlabs
Copy link
Copy Markdown

The first change is just in array compute product.

@craigayre
Copy link
Copy Markdown
Contributor

craigayre commented Feb 19, 2017

Can you also add .vscode/ and yarn.lock to your .gitignore?

While I agree there should be ES6 examples (which is something I am also working on), I think they should be separated from the existing examples

var unsortedArray = [-10, 7, 29, 30, 5, -10, -70];
const unsortedArray = [-10, 7, 29, 30, 5, -10, -70];

computeProduct(unsortedArray); // 21000
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not work since computeProduct is now not hoisted

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll fix that.


## Want to Test Solutions ?
__[Demo and testing](demo)__
- `npm install` or `yarn install`
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could replace yarn install with just yarn

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, to be consistent with install, it might be worth adding how you test with yarn (yarn test)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants