Note. This is for educational purposes only.
console.log(this); document.getElementById = function(){ alert('testing'); } document.getElementById('someID');
I have javascript code written above. When I load the page, it shows a warning window that says "Testing."
So, I assume that getElementById is a method of the document object, and I rewrote it to alert('testing') , so it shows me a warning window when the page loads.
If this part is correct, shouldn't I see getElementById when I expand the document object below? Am I looking for him in the wrong place or something like that?

psj01 source share