-
-
Save codecademydev/956579de667a781bc6bc21d0a6557aeb to your computer and use it in GitHub Desktop.
Codecademy export
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const veggies = ['broccoli', 'spinach', 'cauliflower', 'broccoflower']; | |
const politelyDecline = (veg) => { | |
console.log('No ' + veg + ' please. I will have pizza with extra cheese.'); | |
} | |
// Write your code here: | |
const declineEverything = (arr) => { | |
veggies.forEach(veggie) => politelyDecline(veggie); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment