Answers for "uppercase initial name javascript"

2

javascript name capitalization

function capitalizeName(name) {
  return name.replace(/\b(\w)/g, s => s.toUpperCase());
}
Posted by: Guest on May-17-2020

Code answers related to "uppercase initial name javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language