Evaluates an expression in the context of the running script.
This method allows you to use a running host to evaluate an
expression written in the loaded language and get the result. The result
will depend on the script expression and can be anything the script
supports - object, string, number etc. The expression is evaluated in the
global script context by default. This means any variables found in the
expression will be assumed as global script variables.
This is powerful technique and allows very interesting tricks such as
evaluating a formula the user entered at run-time and so on.
Most of the script languages have functions - eval, execute or
something similar. They are intended to execute or evaluate script text at
run time. This method does exactly the same, but from outside.