Javascript – I don't understand this example for a callback function, in which we callback a function which hasn't actually been declared
In the below example from Codecademy, I don't really understand how the console can process the 'artist' parameter in a higher-order function, considering that we've only declared 'artists' up to this point? const artists = ['Picasso', 'Kahlo', 'Matisse', 'Utamaro']; artists.forEach(artist…