I have a complex code.this is its sample.i can not change structure. how can i call e() in f()?
a=function b()
{
var c,d;
c=function()
{
function e()
{
...
}
...
}
d=function()
{
function f()
{
//i need e() here
}
....
}
}
You can’t. That’s the whole point of scoping.
You can, however, make the variable
eavailable to the parent scope by declaring it outside the functionc.