Answers for "Capitalize the Names 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 "Capitalize the Names javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language