Is it possible to print / display a JavaScript variable\'s name? For example:
var foo=5; var bar=6; var foobar=foo+bar; document.write(foo+ \"\");
Another possible solution can be "Object.keys(this)".... This will give you all the variable names in an array.