SyntaxFix
Write A Post
Hire A Developer
Questions
eval is one option.
eval
var a = 1; var name = 'a'; document.write(eval(name)); // 1