FrontendDeveloper.in

JavaScript question detail

What is eval

The eval() function evaluates JavaScript code represented as a string. The string can be a JavaScript expression, variable, statement, or sequence of statements.

console.log(eval("1 + 2")); //  3
Back to all JavaScript questions
Get LinkedIn Premium at Rs 399