Make a Pizza explainer


The aim of this puzzle: Make a list (array) of toppings (strings) to add to a pizza.

Walkthrough of the solution: The cook() function is ready to bake the toppings onto a pizza but right now toppings is just ‘cheese’.

First, tap on the string ‘cheese’ to highlight it. Next, tap the [] button to replace ‘cheese’ with an empty array []. Now tap the str button to open the keyboard and type in the name of an ingredient like 'ham' or 'pineapple'. Tap the empty space below the new ingredient you just entered and add another.

Once you have at least 3 strings inside the toppings array, try running the code to make your pizza.

Sample code solution:
(Tap below to reveal)

var toppings = [

JavaScript Concepts: Data Structures (arrays), Variable Declaration, Calling Functions, Identifiers

listed #2