Unit 5 · Data and algorithms

Arrays and objects

See itExplore the model1 / 5

Name every part

Here is a shopping list and a contact card in JavaScript. Drag each label onto the part it names.

const groceries = [1"eggs",2"milk",3"bread"];const contact = {4phone:5"555-0142"};
Labels

Drag a card, or tap it and then tap where it goes.

  • 1"eggs"Drop a label here
  • 2"milk"Drop a label here
  • 3"bread"Drop a label here
  • 4phoneDrop a label here
  • 5"555-0142"Drop a label here
Next unlocks when this is right.