• + 0 comments

    One line with lambda & string index[]:

    var getGrade = score => "FEDCBA"[~~((score - 1) / 5)];