Consider the following code snippet:
const fruits = ['apple', 'banana', 'cherry', 'date'];
const uppercaseFruits = fruits.map(fruit => fruit.toUpperCase());
console.log(uppercaseFruits);
What will be the output of the console.log statement?
Consider the following code snippet:
const fruits = ['apple', 'banana', 'cherry', 'date'];
const uppercaseFruits = fruits.map(fruit => fruit.toUpperCase());
console.log(uppercaseFruits);
What will be the output of the console.log statement?