javascript uppercase an lower case code example
Example 1: uppercase and lowercase letters in js
str.toLowerCase()
str.toUpperCase()
Example 2: convert an array to uppercase or lowercase js
var fruits = ["Banana", "Orange", "Apple", "Mango"];
undefined
string = fruits.join(' ').toUpperCase();
// Output"BANANA ORANGE APPLE MANGO"