You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
titleCase("I'm a little tea pot"); // I'm A Little Tea Pot
titleCase('sHoRt AnD sToUt'); // Short And Stout
titleCase('HERE IS MY HANDLE HERE IS MY SPOUT'); // Here Is My Handle Here Is My Spout
It shows that we need to convert the first letter of each word to UpperCase and the rest to LowerCase.
https://github.com/bradtraversy/traversy-js-challenges/tree/main/01-basic-challenges-1/06-title-case
In the examples
It shows that we need to convert the first letter of each word to UpperCase and the rest to LowerCase.
https://github.com/bradtraversy/traversy-js-challenges/blob/main/01-basic-challenges-1/06-title-case/readme.md#solutions
In the first solution as well it is clearly converted toLowerCase
But in the second solution, only the first character is converted to upper case and rest remains the same.
So either the question and test-cases are wrong, or the examples and Solution 1 is wrong.
The text was updated successfully, but these errors were encountered: