I am trying to pull text from a web page with the below code:

```
const theHtml = document.children[0];
function showThePage(htmlObject){
  for(var key in htmlObject){
    console.log(key);
    console.log(htmlObject.hasOwnProperty(key));
    if(htmlObject.hasOwnProperty(key))
    {
      if(htmlObject.key.hasOwnProperty('textContent')){
        console.log(key.textContent);
      }
    }
  }
}
showThePage(theHtml);

```

Something screwy is going on with the properties/children. When I check for the property by the name of each key, it is never true (execution *never* enters the if statement)... meaning the htmlObject has no properties by the name of the given keys. However, when I examine the DOM/DevTools, the properties are in fact listed on the HtmlObject. Am I missing something?