We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
functiongetGrade(score){letgrade;// Write your code hereif(score<=5){grade="F";}elseif(score<=10){grade="E";}elseif(score<=15){grade="D";}elseif(score<=20){grade="C";}elseif(score<=25){grade="B";}else{grade="A";}returngrade;}
Cookie support is required to access HackerRank
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 →