Skip to content

Instantly share code, notes, and snippets.

@adaam2
Created June 25, 2019 11:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adaam2/04304a85b648f82ca49c497b2613e3fb to your computer and use it in GitHub Desktop.
Save adaam2/04304a85b648f82ca49c497b2613e3fb to your computer and use it in GitHub Desktop.
const courses = {
starters: ["πŸ”", "🍐", "πŸ…"],
mains: ["🍏", "🍊"],
desserts: ["🍰", "πŸ“"]
};
const dishesChefCanMake = ["🍏", "πŸ…", "🍐", "πŸ”"];
// for each of the courses, find the dishes that the chef can make
// and print them out like so:
// Starters:
// 🍐, πŸ…, or πŸ”
// Mains:
// 🍏
// Desserts:
// 🍰
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment