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

HW3 - Ian Schwarzenberg #12

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

Conversation

IanSchwarzenberg
Copy link

No description provided.


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 = _.difference(rossGameList, nathanGameList); //_.difference shows only the games that are not duplicated in either array (in other words, only the games that Ross and Nathan own on their own but not in common)
Copy link
Member

Choose a reason for hiding this comment

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

one difference alone is insufficient because it checks only one list against the other in one direction - it wouldn't capture games that only nathan owned in this case.

@@ -26,8 +26,25 @@
Start code

===================== */


//BASICALLY OBTAINED FROM https://stackoverflow.com/questions/13845437/from-1-to-100-print-ping-if-multiple-of-3-pong-if-multiple-of-5-or-else-p:
Copy link
Member

Choose a reason for hiding this comment

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

It is fine, so long as you understand the results!

@@ -98,7 +109,13 @@

===================== */

var makeAMarker = (obj) => { //"obj" is the user input, in this case "obj" will be dataFiltered
Copy link
Member

Choose a reason for hiding this comment

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

I appreciate all of your comments. This is helpful


for (var i=0; i <dataFiltered.length; i = i+1) {
makeAMarker(dataFiltered[i]).addTo(map) //Uses the makeAMarker function created above to add the points to the map
}
Copy link
Member

Choose a reason for hiding this comment

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

You did not attempt to "clean" the dirty data file. That is the really challenging part about this lab (and the main reason for my request for cleanup)

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