Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript name capitalization

function capitalizeName(name) {
  return name.replace(/(w)/g, s => s.toUpperCase());
}

Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #capitalization
ADD COMMENT
Topic
Name
4+1 =