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 ad2180d commit 94348cbCopy full SHA for 94348cb
Sprint-3/2-practice-tdd/get-ordinal-number.js
@@ -1,6 +1,5 @@
1
function getOrdinalNumber(num) {
2
- //
3
- if (typeof num !== "number" || !Number.isInteger(num) || num <= 0) {
+ if (typeof num !== "number") {
4
return "Input must be a positive integer.";
5
}
6
0 commit comments