Array1 = word.split(); // turn a word to Array1 Array1[0] = Array1[0].toUpperCase(); //Capitalized first letter in each word for (i = 1; i < word.length; i++) { Array1[i] = Array1[i].toLowerCase(); //Capitalized the rest letter in each word } word = Array1.join(); //return word after Capitalized the first letter return word; } function titleCase ...