-
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
Week3 Yufei Yuan #15
base: master
Are you sure you want to change the base?
Week3 Yufei Yuan #15
Conversation
lab/lab1/part1-array-access.html
Outdated
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) } |
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.
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.
Changed. This solved the propblem!
|
||
|
||
|
||
//for clean data |
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.
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.
Changed. It should work now.
x = y; | ||
y = z; | ||
} | ||
console.log(evenSum); |
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.
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
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.
Changed
lab/lab2/part1.js
Outdated
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)); |
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.
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.
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.
Changed.
No description provided.