how to convert array to uppercase in javascript

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

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

Also in JavaScript: