Skip to content

Latest commit

 

History

History
14 lines (9 loc) · 359 Bytes

(8 kyu) Abbreviate a Two Word Name.md

File metadata and controls

14 lines (9 loc) · 359 Bytes

Abbreviate a Two Word Name (8 kyu)

https://www.codewars.com/kata/abbreviate-a-two-word-name

Write a function to convert a name into initials. This kata strictly takes two words with one space in between them.

The output should be two capital letters with a dot seperating them.

It should look like this:

Sam Harris => S.H
Patrick Feeney => P.F