• + 0 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
    

    }