-
Notifications
You must be signed in to change notification settings - Fork 30
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
HW-ZIXUAN XU #16
base: master
Are you sure you want to change the base?
HW-ZIXUAN XU #16
Conversation
else if (num % 5 === 0) { | ||
console.log('Buzz') | ||
} else console.log(num) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does not log anything to the console. You need to initiate the loop.
|
||
var result = num.reduce((accumulator, currentValue) => { | ||
return accumulator + currentValue | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
difference
is insufficient - it only works in one direction. This would not capture the games nathan has that I do not have.
No description provided.