Reverse Words in a String

EasyUiPath

Prompt

Write a function reverseWords that takes a string and returns a new string where each word is reversed individually, but the order of the words stays the same.

reverseWords('Hello World'); // "olleH dlroW"