Skip to content

Commit cc879bb

Browse files
committed
Ran Prettier and formatted the entire file
1 parent 3bb795f commit cc879bb

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ function getOrdinalNumber(num) {
66
if (lastTwo === 11 || lastTwo === 12 || lastTwo === 13) {
77
return str + "th";
88
}
9-
const lastDigit = num % 10;
10-
if (lastDigit === 1) {
9+
const lastDigit = num % 10;
10+
if (lastDigit === 1) {
1111
return str + "st";
1212
} else if (lastDigit === 2) {
1313
return str + "nd";
@@ -16,8 +16,6 @@ if (lastDigit === 1) {
1616
} else {
1717
return str + "th";
1818
}
19-
20-
2119
}
2220

2321
module.exports = getOrdinalNumber;

0 commit comments

Comments
 (0)