I'm trying to convert a calculation String into a Number object in JavaScript, however I can't find a function that do the wanted job.
The parseInt(String)
function only parse the first number of calculation but doesn't apply the mathematical functions on it.
I minimal version of what I'm meaning would be something like this: https://jsfiddle.net/qd7u6h60/3/
I'll be glad if someone has an anwser