You are viewing a single comment's thread. Return to all comments →
Javascript with ES6 :)
function solve(grades){ return grades.map((n) => { let diff = 5 - (n % 5); if(diff < 3 && n >= 38) { n += diff; } return n; }) }
Grading Students
You are viewing a single comment's thread. Return to all comments →
Javascript with ES6 :)