Skip to content

Commit 7f195fc

Browse files
committed
updated and simplified the isproperfraction function
1 parent 48c7af8 commit 7f195fc

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Sprint-3/1-implement-and-rewrite-tests/implement/2-is-proper-fraction.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,8 @@
88
// write one test at a time, and make it pass, build your solution up methodically
99

1010
function isProperFraction(numerator, denominator) {
11-
if (numerator < denominator) {
12-
return true;
13-
}else if (numerator >= denominator) {
14-
return false;
15-
}
11+
12+
return numerator < denominator;
1613
}
1714

1815
// The line below allows us to load the isProperFraction function into tests in other files.

0 commit comments

Comments
 (0)