Skip to content

Conversation

hienduyph
Copy link

The first change is just in array compute product.

@craigayre
Copy link
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
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
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
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
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