function(global) global javascript code example Example: javascript global function window.my_function = function(){ // }