There was an error while loading. Please reload this page.
1 parent 1230568 commit 26a0fedCopy full SHA for 26a0fed
1 file changed
Sprint-3/1-implement-and-rewrite-tests/implement/2-is-proper-fraction.js
@@ -11,11 +11,7 @@
11
// execute the code to ensure all tests pass.
12
13
function isProperFraction(numerator, denominator) {
14
- if (numerator <= denominator && numerator > 0) {
15
- return true;
16
- } else {
17
- return false;
18
- }
+ return numerator <= denominator && numerator > 0
19
}
20
21
// The line below allows us to load the isProperFraction function into tests in other files.
0 commit comments