Originally posted here! The core difference between the firstChild and firstElementChild DOM element properties is that, The firstChild DOM element property returns a text, comment, or an Element as the value. Put simply, it returns the first thing...

No responses yet.