Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript lowercase string except first letter of every word

var text = "foo bar loo zoo moo";
text = text.toLowerCase()
    .split(' ')
    .map((s) => s.charAt(0).toUpperCase() + s.substring(1))
    .join(' ');
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #lowercase #string #letter #word
ADD COMMENT
Topic
Name
3+4 =