If the argument represents one or more JavaScript statements eval evaluates the statements. Its a safer and more math-oriented alternative to using JavaScripts eval function for mathematical expressions. Eval is a Math Function.
Additionally you can add your own JavaScript functions.
Returns 3141592653589793 Try it Yourself Mathround. You can also add subtraction multiply and divide and complete any arithmetic you need. If the argument represents one or more JavaScript statements eval evaluates the statements. The parser also contains some convenience functions to get set and remove variables from memory.