KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Is there a way to calculate a formula stored in a string in JavaScript without using 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() ?
Tags (comma-separated)
Save Edits
Cancel