1

I had thought Document and document was always the same.

But the console shows, Document is a function in chrome,

while document is a object. Why?

Why is the former used?

I've searched SO, but I didn't get the answer and I googled, but still I didn't get my answer.

And how to use the Document since it is a function?

Amit Joki
  • 58,320
  • 7
  • 77
  • 95

1 Answers1

0

Document is the constructor for an HTML document in Chrome.

document is the instance of Document for the current window.

Paul Draper
  • 78,542
  • 46
  • 206
  • 285