Skip to content

Commit 4bbaa6b

Browse files
Apply changes asked by the reviewer
1 parent 75a06d4 commit 4bbaa6b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ function getOrdinalNumber(num) {
33
if (["11", "12", "13"].includes(last2Digits)) return `${num}th`;
44

55
const lastDigit = String(num).slice(-1);
6-
const restOfNum = String(num).slice(0, -1);
76
let ordinalResult = "";
87
switch (lastDigit) {
98
case "1":

0 commit comments

Comments
 (0)