Write a capitalize string function with array and string methods

Share this video with your friends

Send Tweet

In this lesson we will use functional programming approach to solve the challenge which requires you to capitalize all the letters of the string passed to the function. We will employ array.map together with string.split and string.join to achieve this functionality.