Possible Duplicate:
Determine original name of variable after its passed to a function.
I would like to know if its possible to get the actual name of a variable.
For example:
var foo = 'bar';
function getName(myvar) {
//some code
return "foo"
};
So for getName(foo) will return "foo"
Is that possible ?
Thanks.