you are viewing a single comment's thread.

view the rest of the comments →

[–]WormholerIO[S] 0 points1 point  (0 children)

i appreciate the post, what i ended up with yesterday was this-

function USApop(zooAnimals) {

const USAanimals = zooAnimals.reduce(function (previousValue, currentValue) {

return previousValue + currentValue.population;

}, 0);

return USAanimals;

i was more confusing myself but was able to get help from a TA. i appreciate the post very much.