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

Clarification #357

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

michaelgrilo
Copy link
Contributor

Here I'm trying to make it more explicit that a global variable is needed as a container for the sum. I didn't pick up on this and tried to fit everything into the for loop. I might be spelling things out too much with this commit, but I had to look at the solution before I could understand this problem.

I also tried to make the writing in this problem more concise.

Here I'm trying to make it more explicit that a global variable is needed as a container for the sum. I didn't pick up on this and tried to fit everything into the `for loop`. I might be spelling things out too much with this commit, but I had to look at the solution before I could understand this problem. 

I also tried to make the writing in this problem more concise.
@martinheidegger
Copy link
Contributor

LGTM @workshopper/owners ?


Also be aware that all elements of `process.argv` are strings and you may need to *coerce* them into numbers. You can do this by prefixing the property with `+` or passing it to `Number()`. e.g. `+process.argv[2]` or `Number(process.argv[2])`.
Try to remember what kind of statement JavaScript uses to hold on to values. What scope such a container would need? Which value would it initially be assigned to?
Copy link
Member

Choose a reason for hiding this comment

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

This is more confusing IMO

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

Successfully merging this pull request may close these issues.

None yet

4 participants