You are viewing a single comment's thread. Return to all comments →
Hi guys, here is mine JS solution:
let hiBreak = 0; let lowBreak = 0; score.reduce((agg, cur)=> { if(cur > agg[0]) { ++hiBreak; agg[0] = cur; } else if(cur < agg[1]){ ++lowBreak; agg[1] = cur; } return agg; },[score[0], score[0]]) return [hiBreak, lowBreak];
Seems like cookies are disabled on this browser, please enable them to open this website
Breaking the Records
You are viewing a single comment's thread. Return to all comments →
Hi guys, here is mine JS solution: