Ad
Code
Diff
  • getGrade=(a,b,c)=>"DCBAA"[~~((a+b+c)/30)-6]??"F"
    • getGrade=(a,b,c,m=(a+b+c)/3)=>"FDCBA"[(m>59)+(m>69)+(m>79)+(m>89)]
    • getGrade=(a,b,c)=>"DCBAA"[~~((a+b+c)/30)-6]??"F"