Skip to content

Latest commit

 

History

History

279-capitalAfterVowel

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

capitalAfterVowel

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

The Question

Given a string, make every consonant after a vowel uppercase. Can you do this with and without regex?

Example:

> capitalAfterVowel("hello world")
> "heLlo WoRld"

> capitalAfterVowel("xaabeuekadii")
> "xaaBeueKaDii"

Installing & Running

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