const ul = document.querySelector( 'ul' ); console.log( ul.firstElementChild ); console.log( ul.firstChild );