functionbreakingRecords(scores){let ret =[];let min =0,
max =0;let minCount =0,
maxCount =0;
scores.forEach((value, index)=>{if(!index){
min = value;
max = value;}else{if(value < min){
min = value;
minCount++;}elseif(value > max){
max = value;
maxCount++;}}});return[maxCount, minCount];}