O'Reilly logo
  • Ahmed Elgendy thinks this is interesting:

Next we take that element (that is, the element with the id “code9”) and we use its innerHTML property to get its content, which we assign to the variable code.

From

Cover of Head First JavaScript Programming

Note

how to use the property innerHTML to get the HTML content of an element?