Of course it is possible. However, the question itself is not 100% correct.
Here is the thing: Javascript is an interpretive language, and functions are
first-class citizens; they are also objects. It means that everything is created during execution, in the order of execution, everything, including the function. The whole idea of "local function" or "global function", as it is understood in the "traditional" imperative languages is somewhat blurred. Perhaps you mean the function object created during execution of some other function; such function is local and not visible from other functions, unless it is passed somewhere in some parameter (as function object, not to be mixed up with the result of calculation of function). Inside the
scope of such "local" function, all object of outer scope are accessible, including function. If some function object is created at the moment of execution of some code of the inner function, such outer-scope function can be called.
There is nothing to enlighten here. Just call it.
The function scope is very well explained, for example, here:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions_and_function_scope[
^].
—SA