Skip to content

Commit d27060c

Browse files
committed
Feat: fixFor/nilejackLesson07/Hw
1 parent 69cc402 commit d27060c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lesson_07/conditionals/src/lesson7.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export function compareStrings(a: string, b: string): number {
4747
* @return The letter grade ("A+", "A", "A-", "B+", etc.).
4848
*/
4949
export function convertGpaToLetterGrade(gpa: number): string {
50-
if (gpa == 4.0) {
50+
if (gpa >= 4.0) {
5151
return "A";
5252
} else if (gpa <= 3.99 && gpa >= 3.7) {
5353
return "A-";
@@ -107,7 +107,7 @@ export function addNumbers(values: number[]): number {
107107
*/
108108
export function getFirstNFibonacciNumbers(n: number): number[] {
109109
if (n < 1) {
110-
return [];
110+
//return [];
111111
}
112112

113113
const fibonacci: number[] = [1, 1]; // The function starts with the first two Fibonacci numbers

0 commit comments

Comments
 (0)