I have noticed that if you write a program like this:
console.log(document);
It shows [object HTMLDocument]
.
Then, if you do this:
console.log(HTMLDocument);
it shows this:
function HTMLDocument() {
[native code]
}
So, I am wondering what the HTMLDocument
function is, and what its code is.
Thanks!