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

Scott M-Week 2 #30

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

Conversation

smullarkUPENN
Copy link

Scott M-Week 2

//Code guidance: https://openclassrooms.com/en/courses/3523231-learn-to-code-with-javascript/3703666-store-data-in-arrays

for (var i = 0; i < healthCenters.length; i=i+1) {//sets loop through each element starting at 0 (i=0) for full length of array minus 1 (last value)
console.log(healthCenters[i]);//logs to console set of health centers in array form
Copy link
Member

Choose a reason for hiding this comment

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

This does not produce an array of arrays.

Your results console log each object as such:

image

We are looking for you to produce an array of arrays as such:

image

Copy link
Author

Choose a reason for hiding this comment

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

I just added a revision that I believe addresses the issue. I initially did not see that the push worked so I pushed it twice...second only has a change in spacing.
image

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