Khan Academy or Scratch Wikia
Register
Advertisement
Challenge recipe card

Challenge: Recipe Card is a challenge in the Objects section of Khan Academy's Intro to JS section. This challenge practices using Objects with three steps worth 1500 points.

Steps[]

There are three steps in this challenge:

  1. Edit the provided recipe - The user is asked to change the provided recipe to one of their favorite recipes.  The initial recipe is setup using three separate variables.
  2. Convert the Variables to an Object - The user is asked to transform the code for the recipe to use an object, rather than separate variables.
  3. Change the Text Commands - The user is asked to modify the text commands to display the information now stored as properties of the Object.
☀ All Khan Academy content is available for free at: www.khanacademy.org
Advertisement