There was an error while loading. Please reload this page.
1 parent d9144d9 commit 0bfbb21Copy full SHA for 0bfbb21
1 file changed
Sprint-3/1-implement-and-rewrite-tests/implement/2-is-proper-fraction.js
@@ -12,6 +12,8 @@
12
13
function isProperFraction(numerator, denominator) {
14
// TODO: Implement this function
15
+ if (denominator === 0) return false;
16
+ return Math.abs(numerator) < Math.abs(denominator);
17
}
18
19
// The line below allows us to load the isProperFraction function into tests in other files.
0 commit comments