Eval | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Eval

I seen eval many times. But what does it do?

4th Jun 2020, 6:22 PM
Sali65
Sali65 - avatar
3 Answers
+ 4
eval() is a function property of the global object. The argument of theeval() function is a string. If the string represents an expression, eval() evaluates the expression. If the argument represents one or moreJavaScript statements, eval() evaluates the statements.
4th Jun 2020, 6:23 PM
Muhammad Galhoum
Muhammad Galhoum - avatar
4th Jun 2020, 6:25 PM
Sali65
Sali65 - avatar