Why can't I directly assign document.getElementById to a different function?
So I'm trying to define a function g() that is like document.getElementById. The following works just fine:

    var g = function(id){return document.getElementById(id)};

But why doesn't this more direct code work?

    var g = document.getElementById;
Why can't I directly assign document.getElementById to a different function?
===

So I'm trying to define a function g() that is like document.getElementById. The following works just fine:

    var g = function(id){return document.getElementById(id)};

But why doesn't this more direct code work?

    var g = document.getElementById;