Skip to content

Commit a87356b

Browse files
committed
indentation fixed
1 parent 09a628b commit a87356b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Sprint-3/2-practice-tdd/get-ordinal-number.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
function getOrdinalNumber(num) {
2-
32
if (!Number.isInteger(num) || num <= 0) {
43
return "Invalid input";
54
}
6-
if (num % 100 >= 11 && num % 100 <= 13) {
5+
if (num % 100 >= 11 && num % 100 <= 13) {
76
return num + "th";
87
}
98
switch (num % 10) {

0 commit comments

Comments
 (0)