Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 799 Bytes

README.md

File metadata and controls

14 lines (11 loc) · 799 Bytes

03.6 Do Now

Press the button on the webpage to change it up! Then answer the questions below:

  1. What changed about the webpage when you clicked the button?
  2. Take a look at line 6 of the JavaScript. Based on what changed, what do you think innerHTML does?
  3. Take a look at line 7 of the JavaScript. Based on what changed, what do you think .style does?
  4. Take a look at line 8 of the JavaScript. Based on what changed, what do you think .src does?

If you have time...

Try to change the following things:

  • On line 6 of the JavaScript, make it so that the header says your name when the button is clicked.
  • On line 7 of the JavaScript, make it so that the image is 500px when the button is clicked.
  • On line 8 of the JavaScript, change the src of the image to something random.