To convert an array of strings to uppercase in JavaScript, you can use the “map()” method to iterate through each element of the array and call the “toUpperCase()” method on each string.
Example
const originalArray = [ 'bmw', 'audi', 'mercedez', 'jaguar' ];
const upperCaseArray = originalArray.map(item => item.toUpperCase());
console.log(upperCaseArray);
Output
[ 'BMW', 'AUDI', 'MERCEDEZ', 'JAGUAR' ]
In this code, we have an array called originalArray that contains strings in lowercase.
In the next step, we used the “map()” method to iterate through each array element and applied the “toUpperCase()” method to convert each string to uppercase. The result is a new array called uppercaseArray containing the uppercase versions of the original strings.
We used an arrow function to simplify the callback function passed to the “map()” method.

Krunal Lathiya is a seasoned Computer Science expert with over eight years in the tech industry. He boasts deep knowledge in Data Science and Machine Learning. Versed in Python, JavaScript, PHP, R, and Golang. Skilled in frameworks like Angular and React and platforms such as Node.js. His expertise spans both front-end and back-end development. His proficiency in the Python language stands as a testament to his versatility and commitment to the craft.