Fixing Capitalization


  1. Convert the whole of the string contained in the input variable to lower case and store it in a new variable lowerCaseString.
  2. Grab the first letter of the string in this new variable and store it in another variable firstLetter.
  3. Using this latest variable firstLetter as a substring,
    replace the first letter of the lowercase string lowerCaseString.replace(firstLetter, with the first letter of the lowercase string changed to upper case firstLetter.toUpperCase().
    Store the result of this replace procedure in another new variable fixedList.
  4. Change the value of the result variable to equal to the final result fixedList, not the input variable.
  5. Note: We are basically replaceing the first letter of each array element with that same first letter, which is capitalized.
  6. Don't forget the () 's.