Girl Develop It Buffalo

JS101 Class 2 Exercises: Arrays

Home

Top Choices

  • Create an array to hold your top choices (colors, presidents, whatever).
  • For each choice, log to the screen a string like: "My #1 choice is blue."
  • Bonus: Use a forEach to iterate over the array