Javascript eval() function not working properly : <p>I'm currently making a calculator with HTML, CSS and Javascript, for practice. I found out that the "built in" eval function did the math from a string. But it doesn't work properly. </p>

<p>I don't know what the problem is. But when i for example do: 11+11/2 which should be 11. Becomes 16.5 for some reason. I have no idea why. I would really appreciate some help. </p>

<p>Here is the code: </p>

<pre><code>    function revealAnswer(){
            var math = document.getElementById("numbersInputted");
            math.innerHTML += " = " + eval(math.innerHTML);

    }
</code></pre>
