I'm learning Javascript, and I just want to fully understand where these methods come from:

* document.getElementByID
* document.querySelector
.
.
.
* etc

I understand what they do, and how to use them. I know that "document" is the main object and you can either use the "dot" notation or "['']" to access values using the keys of the object. But I can't seem to find getElementID under the Document object when I type in the Chrome's console: console.dir(document)

In Python, we have special methods that come with Python, are these 'special' methods? So they do need to be part of the Document object specifically?

I know this might be a silly question, but I just want to fully understand where everything comes from. Thank you guys, I appreciate the help.

Regards,

Anthony