You are viewing a single comment's thread. Return to all comments →
function getCount(objects) { var counter = 0; objects.forEach(function(object){ if (object.x==object.y){ counter++; } }); return counter; }
Seems like cookies are disabled on this browser, please enable them to open this website
Day 4: Count Objects
You are viewing a single comment's thread. Return to all comments →
function getCount(objects) { var counter = 0; objects.forEach(function(object){ if (object.x==object.y){ counter++; } }); return counter; }