Is there a way to calculate a formula stored in a string in JavaScript without using eval()?
eval()
Normally I would do something like
var apa = "12/5*9+9.4*2"; console.log(eval(apa));
So, does anyone know about alternatives to eval()?