Alternative to eval() javascript [duplicate]
Javascript is a very flexible language in this regard. There are very very few cases where eval() is the right answer to any given question, and it certainly isn’t necessary here. If your a and b variables are part of an object, you can access them with string subscripts: ie myobj.a could also be referenced … Read more