I have two different JavaScript functions in same file, like this:
function functionOne(a)
{
if(a)
{
return true;
}
else
{
return false;
}
}
function functionTwo(b)
{
//I want to access if condition parameter a here
}
I want to access functionOne if condition parameter a in functionTwo.
functionTwo(functionOne(a))will pass the returned value of functionOne as functionTwo's parameter.