← Back CP 📋 Chef's Checklist
🍕 Pizza Planet — Welcome to the busiest kitchen in the galaxy! You're the Head Chef, and every order goes on your prep list. Add a topping, check it off when it's done, remove a mistake. Those four moves — Create, Read, Update, Delete — are called CRUD, and they power every app you've ever used!

📝 Arrays + CRUD = A Real App

In Array Adventure you stored a list of items in an array. In Click Counter you reacted to taps. Now combine them into a working to-do app! You'll push new items into the array, toggle their done-state, splice out the ones you remove, and loop through the array to show every item on screen. That's CRUD — the heartbeat of every list, cart, and feed on the web!

// The 4 moves of every list app:
var prep = ["dough", "sauce"];
prep.push("cheese"); // CREATE — add to end
prep[0].done = true; // UPDATE — mark done
prep.splice(1, 1); // DELETE — remove item
prep.forEach(function(i){ // READ — show each
  show(i);
});
🎯 Missions Add a topping! Check one off! Finish all 5 challenges!
🍕 prep-list.js — Live Code
1// Your prep list is an array of items
2var prep = [ ];
3 
4// CREATE: push adds a new item to the end
5prep.push({ text: "Stretch the dough", done: false });
6 
7// READ: loop through every item to show it
8for (var i = 0; i < prep.length; i++) {
9  showItem(prep[i]);
10}
11 
12// UPDATE: flip the done flag
13prep[i].done = !prep[i].done;
14 
15// DELETE: splice removes 1 item at index i
16prep.splice(i, 1);
17 
18// Count: 0 items, 0 done
★ Kitchen Status
0
Total
0
Done
0
To Do
Your prep list is empty — add a topping!

📋 Prep List

Tap ➕ Add to create an item. Tap the square to mark it done (update). Tap to remove it (delete). The code panel shows your moves live!

🍕 No toppings yet — add your first one above!

🎯 Chef Challenges

1
First Topping: Type a topping and press Add — you just used push() to CREATE!
2
Check It Off: Tap the square on an item to mark it done — you just UPDATED it!
3
Remove One: Tap the on any item to DELETE it with splice().
4
🍕 Build a Pizza: Add 3 or more toppings to your list and check them all done!
5
Master Chef: Complete all 4 moves — add, check, uncheck, and remove at least once each!
🌟 Head Chef Progress0%

🍕 Welcome to Pizza Planet!

You're the Head Chef! Run the kitchen with a prep list — add toppings, check them off, and remove mistakes. Every move you make is a real coding technique called CRUD!

Add a topping — that's push(), the CREATE move
Check it off — that's UPDATE, flipping a flag
Remove a mistake — that's splice(), the DELETE move
🏆Complete 5 challenges to become Head Chef!