You are viewing a single comment's thread. Return to all comments →
function gradingStudents(grades) { // Write your code here const result=[] for (let i = 0; i
} else if(grades[i]<100 && grades[i]%5>=3){ Math.round(grades[i]/10)>grades[i]/10?result.push(Math.round(grades[i]/10)*10):result.push((Math.round(grades[i]/10)+0.5)*10) }else{ result.push(grades[i]) } } return result
}
Seems like cookies are disabled on this browser, please enable them to open this website
Grading Students
You are viewing a single comment's thread. Return to all comments →
function gradingStudents(grades) { // Write your code here const result=[] for (let i = 0; i
}