Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 322 Bytes

(7 kyu) Reverse words.md

File metadata and controls

12 lines (8 loc) · 322 Bytes

Reverse words (7 kyu)

https://www.codewars.com/kata/reverse-words

Complete the function that accepts a string parameter, and reverses each word in the string. All spaces in the string should be retained.

Examples

"This is an example!" ==> "sihT si na !elpmaxe"
"double  spaces"      ==> "elbuod  secaps"