Skip to content

Commit 014892f

Browse files
committed
updated if condition for zero numerator
1 parent 2755b3f commit 014892f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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
@@ -14,7 +14,7 @@ function isProperFraction(numerator, denominator) {
1414
if (numerator >= denominator) {
1515
return false;
1616
}
17-
if(numerator == 0){
17+
if(numerator == 0 && denominator != 0){
1818
return true;
1919
}
2020
if (denominator === 0) {

0 commit comments

Comments
 (0)