Need help with making a function return only after its inner function is called. See below for the code snippet -
function x() {
function y() {
// Inner function logic
}
return result; // This should be returned only after function y is called, which happens in another file.
}