I have searched over the web can can\'t find anything to help me. I want to make the first letter of each word upper case within a variable.
So far i have tried:
It is as simple as the following:
string = 'test'; newString = string[0].toUpperCase() + string.slice(1); alert(newString);