eval is not always evil
Simple expression calculator as tip #26
Eval has always been considered evil, but in this case we're removing every character except for numbers, parenthesis and math operators + - * /.
The eval must be inside a try/catch in case the expression is invalid.
We are using computed properties to parse the input and to eval the expression.
What evil things you've been doing with eval?