Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

Difference between first child and first element child

const ul = document.querySelector( 'ul' );

console.log( ul.firstElementChild );
console.log( ul.firstChild );
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Difference #child #element #child
ADD COMMENT
Topic
Name
8+7 =