Skip to content

Commit b69ab2e

Browse files
author
“A1-4U2T1NN”
committed
fix: added ';' to the 'else-if' statements;
1 parent 1eb4434 commit b69ab2e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lesson_07/conditionals/src/lesson7.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,27 +49,27 @@ export function compareStrings(a: string, b: string): number {
4949
export function convertGpaToLetterGrade(gpa: number): string {
5050

5151
if(gpa > 4.0){
52-
return "A"
52+
return "A";
5353
}else if(gpa >= 3.7 && gpa < 4.0) {
54-
return "A-"
54+
return "A-";
5555
}else if(gpa >= 3.3 && gpa < 3.7){
56-
return "B+"
56+
return "B+";
5757
}else if(gpa >= 3 && gpa < 3.3){
58-
return "B"
58+
return "B";
5959
}else if(gpa >= 2.7 && gpa < 3){
60-
return "B-"
60+
return "B-";
6161
}else if(gpa >= 2.3 && gpa < 3.7){
62-
return "C+"
62+
return "C+";
6363
}else if(gpa >= 2 && gpa < 2.3){
64-
return "C"
64+
return "C";
6565
}else if(gpa >= 1.7 && gpa < 2){
6666
return "C-";
6767
}else if(gpa >= 1.3 && gpa < 1.7){
6868
return "D+";
6969
}else if(gpa >= 1.0 && gpa < 1.3){
7070
return "D";
7171
}else if(gpa < 1.0){
72-
return "F"
72+
return "F";
7373
}
7474
}
7575

0 commit comments

Comments
 (0)