Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript capitalize array

const names = ['Ali', 'Atta', 'Alex', 'John'];

const uppercased = names.map(name => name.toUpperCase());

console.log(uppercased);

// ['ALI', 'ATTA', 'ALEX', 'JOHN']
Source by attacomsian.com #
 
PREVIOUS NEXT
Tagged: #javascript #capitalize #array
ADD COMMENT
Topic
Name
5+2 =