E
EricGoogle
Hello All,
I am trying to figure out a how to get a variable's name from code.
Ex:
var MYVAR = 3;
alert( ????? );
OUTPUT: "MYVAR"
Searched under:
javascript introspection
and
"variable name" javascript
NOT FINDING ANY HELP ON THE WEB
- anyone know this?.. is it possible in the current spec of the
language???
Thanks - Eric
I am trying to figure out a how to get a variable's name from code.
Ex:
var MYVAR = 3;
alert( ????? );
OUTPUT: "MYVAR"
Searched under:
javascript introspection
and
"variable name" javascript
NOT FINDING ANY HELP ON THE WEB
- anyone know this?.. is it possible in the current spec of the
language???
Thanks - Eric