Skip to content

Latest commit

 

History

History
15 lines (14 loc) · 436 Bytes

ex_122.md

File metadata and controls

15 lines (14 loc) · 436 Bytes

Exercise 122

  • Create a new index122.js file
  • Define a ingredients array and assign the following values:
    • Pork
    • Pomato
    • Chicken
    • Lettuce
    • Beef
    • Carrots
    • Cucumber
  • Define a new array with the name vegetarian and assign only the items from the ingridient array (using indexes) that should belong in the vegetarian list
  • Show the ingredients list as output
  • Show the vegetarian list as output
  • Now I'm hungry!