how to convert array to uppercase in javascript
snippet in javascript

how to convert array to uppercase in javascript

user611

var a = ['this','is','test'];

a.map(f=>{ return f.toUpperCase(); });

convert an array to uppercase or lowercase js

user461

var fruits = ["Banana", "Orange", "Apple", "Mango"];
undefined
string = fruits.join(' ').toUpperCase();
// Output"BANANA ORANGE APPLE MANGO"

javascript capitalize array

user8853

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

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

console.log(uppercased);

// ['ALI', 'ATTA', 'ALEX', 'JOHN']