HTMLCollections & NodeLists
Most of us believed, at least for some time, that in our DOM Scripting, we always dealt with arrays in our JavaScript:
1 2 3  | var myLinks = document.getElementsByTagName('a'); // we have three links myLinks.length; // "3"  | 
Most of us believed, at least for some time, that in our DOM Scripting, we always dealt with arrays in our JavaScript:
1 2 3  | var myLinks = document.getElementsByTagName('a'); // we have three links myLinks.length; // "3"  | 
innerHTML is a read/write property of a DOM element that gets/sets the HTML
contained in the element.
Once you have access to an element, you can manipulate it using assignment of object properties or DOM methods.
Today I'm going to talk about the DOM. Things you might not know, tricks, nuances and some best practices (I think). So, let's get to it.