We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b46e59d commit f55b3a2Copy full SHA for f55b3a2
Sprint-3/2-practice-tdd/get-ordinal-number.js
@@ -1,5 +1,5 @@
1
function getOrdinalNumber(num) {
2
- if (typeof num !== "number" && num <= 0) {
+ if (typeof num !== "number" || num <= 0) {
3
return "Input must be a positive integer.";
4
}
5
0 commit comments