A valid string representing an expression
or list of expressions.
The
Eval
function
cannot refer to user-defined variables and functions. For example:
var s = "var t = concat(s, ""hello"")"
eval(s)
In this case, the
Eval
function
does not recognize
s
, and so returns an error.
Any subsequent functions that make reference to the variable
s
also
fail.
Examples
The
following expressions are examples that use the
Eval
function: