19
rated 0 times
[
23]
[
4]
/ answers: 1 / hits: 21946
/ 14 Years ago, wed, august 25, 2010, 12:00:00
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.
More From » variables