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

Week3 Yufei Yuan #15

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

Conversation

yufeiy6
Copy link

@yufeiy6 yufeiy6 commented Feb 8, 2019

No description provided.

TempArr.unshift(header);
for (i=0; i < TempArr.length; i++){console.log(TempArr[i])};
var makeAMarker = (obj) => {return L.marker([obj[0], obj[1]]).bindPopup(obj[2])}
for (var i=1; i <= TempArr.length; i++){ makeAMarker(TempArr[i]).addTo(map) }
Copy link
Member

Choose a reason for hiding this comment

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

<= is giving this error:

image

Try without the = it resolves the issue.

Copy link
Author

Choose a reason for hiding this comment

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

Changed. This solved the propblem!




//for clean data
Copy link
Member

Choose a reason for hiding this comment

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

Nothing appears on the map when I load the page:
part3-data-transformation.html

image

Does it work for you?

Copy link
Author

Choose a reason for hiding this comment

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

Changed. It should work now.

x = y;
y = z;
}
console.log(evenSum);
Copy link
Member

Choose a reason for hiding this comment

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

You are close... But you didn't get the right answer...1089154..

Take a look: https://stackoverflow.com/questions/9053545/finding-the-sum-of-even-valued-terms-in-fibonacci-sequence

Copy link
Author

Choose a reason for hiding this comment

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

Changed

console.log('Which games are owned by both Ross and Nathan', query7);

/* =====================
Which games are exclusive to collections? In other words, only owned by either Ross or Nathan.
===================== */

var query8;

var query8 = _.union(_.difference(rossGameList, nathanGameList), _.difference(rossGameList, nathanGameList));
Copy link
Member

Choose a reason for hiding this comment

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

you are taking a union of two things that are the same.

Try switching the order of the inputs on one of the difference queries and see if the result changes.

Copy link
Author

Choose a reason for hiding this comment

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

Changed.

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