With the code below
<ul>
<li>Rice</li>
<li>Coffee</li>
<li>Beans</li>
</ul>
<script>
var elem = document.getElementsByTagName('li')
for (var i in elem) {
console.log(elem[i])
}
</script>
I see five results, as follows.
<li>Rice</li>
<li>Coffee</li>
<li>Beans</li>
ƒ item() { [native code] }
ƒ namedItem() { [native code] }
What in the world are the last two items?