Skip to content

Commit 34389ec

Browse files
committed
"chore: added functions for lesson07.ts and part_d"
1 parent fc21ad3 commit 34389ec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lesson_07/conditionals/src/lesson7.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function compareStrings(a: string, b: string): number {
1616
return 0;
1717
}
1818

19-
}
19+
}
2020

2121
/**
2222
* Computes the factorial of the given value of `n`.

lesson_07/conditionals/src/part_d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*/
99
function isWithinRange(num: number, min: number, max: number): boolean {
1010
return num >= min && num <= max;
11-
}
11+
}
1212

1313
console.log(isWithinRange(7, 5, 10));
1414
console.log(isWithinRange(2, 5, 10));

0 commit comments

Comments
 (0)