Skip to content

Commit 720fe16

Browse files
added a comment to highlight the integer check
1 parent 7fc3e1f commit 720fe16

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
function isProperFraction(numerator, denominator) {
1414
if (!Number.isInteger(numerator) || !Number.isInteger(denominator)) {
1515
return false;
16-
} // this checks whether the numerator and denominator are integers but not necessarily finite numbers based on the assumption that the parameters are valid numbers (not NaN or Infinity or non-integer like 1.5, 2.3 etc.)
16+
} // this checks whether the numerator and denominator are integers but not necessarily finite numbers based on the assumption that the parameters are valid numbers (not NaN or Infinity or non-integer like 1.5, 2.3 etc.).
1717
if (denominator === 0) {
1818
return false;
1919
}

0 commit comments

Comments
 (0)