Skip to content

Latest commit

 

History

History

natoPhoneticAlphabet

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

NATO Phonetic Alphabet

7 kyu link to kata
my solution

Complete the function word (string) and returns a string that spells the word using the NATO phonetic alphabet.

There should be a space between each word in the returned string, and the first letter of each word should be capitalized.

For those of you that don't want your fingers to bleed, this kata already has a dictionary typed out for you.

Examples

"hi"      -->  "Hotel India"
"abc"     -->  "Alpha Bravo Charlie"
"babble"  -->  "Bravo Alpha Bravo Bravo Lima Echo"
"Banana"  -->  "Bravo Alpha November Alpha November Alpha"