How to check and run math equation using Javascript
<p>I'm trying to make a Javascript function that will take a math equation and do it on a predefined number for example:</p>

<pre><code>var myNum = 10;

function EQ(eq){
// code here 
}
</code></pre>

<p>For example the input should me something like this:</p>

<pre><code>EQ("*100/10"); //output 100
EQ("+100");    //output will be 200
EQ("-+=1");    //output false
</code></pre>

<p>Is there any way to do that?
Thanks</p>
