Khan Academy Wiki
Challenge: Favorite Fruits
Fruits
Description
Challenge Name: Challenge: Favorite Fruits
Section(s) Intro to JS
Steps: 3

Challenge: Favorite Fruits is a programming challenge in the Intro to JS course. This challenge practices using arrays to store data.

Steps[]

There are three steps in this challenge:

  1. Make an array: This step asks users to make an array of their top three favorite fruits.
  2. Display the data: This step asks users to use the text command to display their favorite fruits from the array.
  3. Make a header: This step asks users to make a header that says "My top 3 favorite fruits".
Fruits

The end result of Challenge: Favorite Fruits

If users get stuck[]

If users get stuck, they should:

  • Pay attention to Oh Noes and the error messages.
  • Go back and review the "Arrays" tutorial.

Up next[]

Challenge: Favorite Animals