title: What is the difference between children and childNodes in JavaScript?
body: <p>I have found myself using JavaScript and I ran across <code>childNodes</code> and <code>children</code> properties. I am wondering what the difference between them is. Also is one preferred to the other?</p>