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.
JS Day 2 Simplified If Else Statement Solution in JavaScript.
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"}elseif(score<=30){grade="A"}returngrade;}
Day 2: Conditional Statements: If-Else
You are viewing a single comment's thread. Return to all comments →
JS Day 2 Simplified If Else Statement Solution in JavaScript.