Quantcast
Channel: freeCodeCamp Challenge Guide: Title Case a Sentence
Viewing all articles
Browse latest Browse all 50

freeCodeCamp Challenge Guide: Title Case a Sentence

$
0
0

var i = 0;
function titleCase(str) {
var little = str.toLowerCase();
var words = str.split(" ");

while (i<words.length){
words.replace( words[i].charAt(0).toUpperCase(),words[i].charAt(0));
i++;

}
var joined=words.join();
return joined;
}

titleCase(“I’m a little tea pot”);

Why is my code wrong?

Read full topic


Viewing all articles
Browse latest Browse all 50

Trending Articles


Vimeo 10.7.1 by Vimeo.com, Inc.


Vimeo 10.7.0 by Vimeo.com, Inc.


Confidence Quotes – Confident Quotes


Problema Quotes – Pera Quotes


EASY COME, EASY GO


Ligaw Quotes – Courting Quotes – Sweet Tagalog Quotes


INUMAN QUOTES


Re:Mutton Pies (lleechef)


Pokemon para colorear


Sapos para colorear