Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

uppercase first letter javascript

const names = ["alice", "bob", "charlie", "danielle"];

const namesCap = names.map((name) => {
  return `${name[0].toUpperCase()}${name.slice(1)}`;
});

console.log(namesCap);
Source by www.ingroy.com #
 
PREVIOUS NEXT
Tagged: #uppercase #letter #javascript
ADD COMMENT
Topic
Name
2+7 =