You are viewing a single comment's thread. Return to all comments →
One line with lambda & string index[]:
var getGrade = score => "FEDCBA"[~~((score - 1) / 5)];
Seems like cookies are disabled on this browser, please enable them to open this website
Day 2: Conditional Statements: If-Else
You are viewing a single comment's thread. Return to all comments →
One line with lambda & string index[]: