convert an array to uppercase or lowercase js

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

Also in JavaScript: