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 f097ae0 commit 09a628bCopy full SHA for 09a628b
Sprint-3/2-practice-tdd/get-ordinal-number.js
@@ -1,6 +1,6 @@
1
function getOrdinalNumber(num) {
2
3
- if (typeof num !== "number" || !Number.isInteger(num) || num <= 0) {
+ if (!Number.isInteger(num) || num <= 0) {
4
return "Invalid input";
5
}
6
if (num % 100 >= 11 && num % 100 <= 13) {
0 commit comments