how to make a whole array uppercase in javascript code example
Example 1: how to convert array to uppercase in javascript
var a = ['this','is','test'];
a.map(f=>{ return f.toUpperCase(); });
Example 2: javascript capitalize array
const names = ['Ali', 'Atta', 'Alex', 'John'];
const uppercased = names.map(name => name.toUpperCase());
console.log(uppercased);
// ['ALI', 'ATTA', 'ALEX', 'JOHN']