Skip to content

Commit ae4e6e9

Browse files
committed
fixed loop error on Lesson_07 homework
1 parent 8ab6ff9 commit ae4e6e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lesson_07/conditionals/src/lesson7.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export function convertGpaToLetterGrade(gpa: number): string {
8181
*/
8282
export function computeFactorial(n: number): number {
8383
let product = 1;
84-
for (let i = 1; 1 <= n; i++) {
84+
for (let i = 1; i <= n; i++) {
8585
product *= i;
8686
}
8787

0 commit comments

Comments
 (0)