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>25&&score<=30){grade="A";}elseif(score>20&&score<=25){grade="B"}elseif(score>15&&score<=20){grade="C"}elseif(score>10&&score<=15){grade="D"}elseif(score>5&&score<=10){grade="E"}else{grade="F"}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 →