Is there a way to get a variable name as a string in Javascript? (like NSStringFromSelector in Cocoa)
I would like to do like this:
var myFirstName =
No, there is not. Besides, if you can write variablesName(myFirstName), you already know the variable name ("myFirstName").
variablesName(myFirstName)