So for example, I would like to evaluate 2(3) [which equates to 6].
var string = "2(3)";
var ans = eval(string);
I typed in the above code in Chrome Console and they gave me the following error message: TypeError: number is not a function.
So how do I get "2(3)" to return 6? Thx.