Hi Guys!

I just did the practice at the end of Fundamentals Part 3, but I feel like my code for the `capitalize`

function is too long.

Are there any solutions available for those exercises, so that I can compare?

If there aren’t existing solutions, I would be very grateful if anyone could have a look at my code, which can be found here:

https://jsfiddle.net/kc1q6209/3/

(The `capitalize`

function is defined from line 31.)