Are there any easy way in javascript to transform a mathematical expression from a string to a int. For example, from this:
var a = "5 + 5 - 7";
to this var b = 5 + 5 - 7;
Thank you!
Are there any easy way in javascript to transform a mathematical expression from a string to a int. For example, from this:
var a = "5 + 5 - 7";
to this var b = 5 + 5 - 7;
Thank you!