<h3>Shirts</h3>
<ul id='list'>
<li>Biker Jacket</li>
<li>Mens Shirt</li>
</ul>
I need to get console.log out the second li element. I tried the code below but I was only able to access the first li element
document.querySelector("li").onclick = () => {
console.log("Biker Jacket");
};