Skip to content

Commit

Permalink
feat(JS) replace isNaN(outcome)
Browse files Browse the repository at this point in the history
  • Loading branch information
josueJURE committed Dec 17, 2023
1 parent aa8f0fe commit 8ac0fa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ btns.forEach((btn) => {
: (display.innerText = outcome);
}
function zeroDivedByZero(display, outcome) {
isNaN(outcome)
Number.isNaN(outcome)
? (display.innerText = "Invalid format: You cannot divided by zero" )
: (display.innerText = outcome)
}
Expand Down

0 comments on commit 8ac0fa9

Please sign in to comment.