function b() {
return "B";
}
function output(par){
var l=par;
alert(l);
}
output(b);
The result i get is:
function b() (
return "B";
)
But when i define the variable "l" outside the function. Like:
function b() {
return "B";
}
var l=b();
alert(l);
}
The result is "B";
How do i make the function behave like in the second case but inside the function, and why is not treating it in the same way?