Skip to content

Commit f308251

Browse files
committed
2-is-proper-function down to one line now
1 parent ccf3a1c commit f308251

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@
1111
// execute the code to ensure all tests pass.
1212

1313
function isProperFraction(numerator, denominator) {
14-
15-
let fraction = (numerator >= denominator ) ? false : true;
16-
return fraction
17-
14+
return (numerator >= denominator ) ? false : true
1815
}
1916

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

0 commit comments

Comments
 (0)