You are viewing a single comment's thread. Return to all comments →
function migratoryBirds(arr) { let category = []; [1,2,3,4,5].forEach(val => { category.push({id: val, count: arr.filter(s => s == val).length}); }) return category.sort((a, b) => b.count - a.count)[0].id; }
Seems like cookies are disabled on this browser, please enable them to open this website
Migratory Birds
You are viewing a single comment's thread. Return to all comments →