// Choose a method that will return undefined
cities.method(city => console.log('Have you visited ’ + city + ‘?’));
//Above there is an array of cities
I’ve tried the other methods we learned earlier in the lesson,. forEach(), .map(), .filter(), none of them are methods that are returning as undefined.
I’ve also searched the MDN web docs website for options but nothing is jumping out at me.
It’s been a while since I’ve practiced any coding so any extra tips or suggestions would be appreciated, Thanks!