Suppose I have a long javascript function such as
function test() {
var x;
var a;
...
...
...
...
...
}
is there any way I can ask the function itself to tell me what variables were defined so far.
function test() {
var x;
var a;
...
...
...
...
... // bit of code that would say to me: x and a.
}