Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 389 Bytes

File metadata and controls

14 lines (10 loc) · 389 Bytes

Make Abbreviation

Many things in the world consist of several words. We want to create the makeAbbr() method that returns their abbreviations. Will you help us? Here are examples:

makeAbbr("national aeronautics space administration")
// "NASA"

makeAbbr("central processing unit")
// "CPU"

makeAbbr("simplified molecular input line entry specification")
// "SMILES"