Skip to content

Latest commit

 

History

History

267-ordinal

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

ordinal

Interview question of the issue #267 of rendezvous with cassidoo.

The Question

Write a function to output the ordinal suffix of a positive integer concatenated to an inputted number.

Example:

> ordinal(3)
> '3rd'

> ordinal(57)
> '57th'

Installing & Running

Just pnpm i to install all dependencies and then pnpm t to run the tests!