Skip to content

Instantly share code, notes, and snippets.

View gaku-sei's full-sized avatar

Kévin Combriat gaku-sei

View GitHub Profile
@gaku-sei
gaku-sei / pair_programming_exercises.md
Last active July 2, 2020 03:20 — forked from adambray/pair_programming_exercises.md
Pair Programming Exercises

Number to Ordinal

Finish the function numberToOrdinal, which should take a number and return it as a string with the correct ordinal indicator suffix (in English). That is:

  • numberToOrdinal(1) ==> '1st'
  • numberToOrdinal(2) ==> '2nd'
  • numberToOrdinal(3) ==> '3rd'
  • numberToOrdinal(4) ==> '4th'

Fluid Calculator