JavaScript eval Function

JavaScript eval Function evaluates a string representing an expression. 

If the string consists of base 10 integers and mathematical operators, this function calculates the result of the mathematical expression.


const expression = '5+8-3';
console.log( eval(expression) );


Featured Post

Facebook Unable to Identify Who Was Behind Network of Fake Accounts

Facebook said Tuesday it had been unable to determine who was behind dozens of fake accounts it took down shortly before the 2018 U.S. midte...