Hello
just wandering ..
is there any way to access function local var without passing it as arg ? some wird trick?
like if i have :
-------------------------------------
function foo1()
{
alert(....here i want to alert the foo2 z var ....);
}
function foo2(x)
{
var z=x;
}
foo2(5) ;
foo1();
-----------------------------------------------
thanks
just wandering ..
is there any way to access function local var without passing it as arg ? some wird trick?
like if i have :
-------------------------------------
function foo1()
{
alert(....here i want to alert the foo2 z var ....);
}
function foo2(x)
{
var z=x;
}
foo2(5) ;
foo1();
-----------------------------------------------
thanks
Comment