Unit 6 · JavaScript in the page

Select and change

See itExplore the model1 / 4

Read one line of page code

This line changes a price on the page. Drag each label onto the part of the line it describes.

1document.2querySelector('#price')3.textContent = 4'$4';
Labels

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

  • 1documentDrop a label here
  • 2querySelector('#price')Drop a label here
  • 3.textContentDrop a label here
  • 4'$4'Drop a label here
Next unlocks when this is right.