What will be the output of the following code?
const fruits = ['Apple', 'Banana', 'Orange'];
let result = '';
fruits.forEach(fruit => result += fruit + ' ');
console.log(result.trim());
What will be the output of the following code?
const fruits = ['Apple', 'Banana', 'Orange'];
let result = '';
fruits.forEach(fruit => result += fruit + ' ');
console.log(result.trim());