I think document.getElementById
is a function.
So this function can be assigned to variable. Like this
var hello = document.getElementById;
console.log(hello('hello')));
<div id="hello">hello</div>
But It occurred error like this:
Uncaught TypeError: Illegal invocation