Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

hienpham2tiki
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

```javascript
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.

@@ -10,35 +10,37 @@
1. [Javascript Specific](#javascript)
1. To Be Continued

## 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.

None yet

2 participants