So I was wondering if it is possible to access a variable (which has a value of function) from outside the scope. I have code that goes something like this:
function parentFunction(){
var childFunction = function() {
// do something
}
}
$(function(){
// need to access childFunction() here.
});
1 Answer