JavaScript: reverse characters in words in a string [closed]

How can we reverse characters in a words in a string?
The requirement is – we cannot use built-in methods like reverse, join and keep complexity minimum.

Sample input: Hello world
Sample output: olleH dlrow