You are viewing a single comment's thread. Return to all comments →
No need for "else":
if(score > 25) return "A"; if(score > 20) return "B"; if(score > 15) return "C"; if(score > 10) return "D"; if(score > 5) return "E"; return "F";
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 →
No need for "else":