June 9, 2016 at 9:28 pm #6471
The reason is that getElementsByTagName returns an array.
Anything that has “elements” with the plural “s” returns an array, even if there is only one object in that array.
So if you did this it would work:
var jon = document.getElementsByTagName( 'h1' );
Does that explain it?