• + 0 comments

    For Javascript :

    function gradingStudents(grades) {
        // Write your code here
        return grades.map((ele)=>{
            if(ele<38){
                return ele;
            }else{
                let roundOfval = 5-(ele % 5);
                return roundOfval<3?ele+roundOfval:ele;
            }
        })
    }