Answers for "javascript lowercase string except first letter of every word"

0

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(' ');
Posted by: Guest on September-10-2021

Code answers related to "javascript lowercase string except first letter of every word"

Code answers related to "Javascript"

Browse Popular Code Answers by Language