Note: This is only for learning purpose..
console.log(this);
document.getElementById = function(){
alert('testing');
}
document.getElementById('someID');
I have the above piece of javascript code written. When I load the page it shows an alert box saying 'Testing'.
So I am guessing getElementById is a method of the document object and I've overwritten it to alert('testing'), which is why its showing me the alert box when the page loads.
If that part is correct, shouldn't I see the getElementById when I expand the document object below? Am I looking for it in the wrong place or something?

