Am I missing something here? I completed this lesson with the code below:
const fruits = [‘mango’, ‘papaya’, ‘pineapple’, ‘apple’]; // simple array
// Iterate over fruits below
// arrow syntax
fruits.forEach(fruits => console.log('I want to eat a ’ + fruits));
Nice and simple, and it produced the list as requested. But when looking at this thread I notice people using if/else statements etc. Did I miss an instruction or something?