Hi there!

Ready to practice some JavaScript?

Example 1: Update the innerHTML of an element when the page loads. Do you see the "onload" event called in the body tag?

Example 2: Update the innerHTML of an element when a button is clicked. Do you see the "onclick" event called in the button tag?

The text that we are going to change when the button is clicked is the paragraph underneath it that says "This is the original text"

This is the original text