Refactor a for loop to use Array.forEach()
Rewrite the code to use
Array.forEach()
instead of a for
loop to print each fruit to the console.Premium
JavaScript
Console