Created
August 30, 2023 13:52
-
-
Save codeperfectplus/b5aff54297af27a7119e497ebb5f3b00 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function getGrade(score) { | |
| let grade; | |
| // Write your code here | |
| if(score<=5) { | |
| grade="F"; | |
| }else if(score<=10) { | |
| grade='E'; | |
| }else if(score<=15) { | |
| grade='D' | |
| }else if(score<=20) { | |
| grade ='C' | |
| }else if(score<=25) { | |
| grade ='B' | |
| }else if(score<=30) { | |
| grade='A' | |
| } | |
| return grade; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment