Is there a way to reduce the size of my code by calling functions with shorter aliases?
(function(){
var id = document.getElementById;
id('element-id');
})();
After making this change, an error message appears:
Error: Could not convert JavaScript argument
. What could be causing this issue?