2
Acrobat JavaScript Tools
Exercise: Working with the JavaScript Console
F
IGURE
2.3
Evaluating the variable declaration
After each Acrobat JavaScript statement executes, the console window prints out
undefined
, which is the return value of the statement. Note that the result of a
statement is not the same as the value of an expression within the statement. In this
case, the return value
undefined
does not mean that the value of
jsNum
is
undefined; it just means that the entire JavaScript statement’s value is
undefined
.
6.
A more convenient way to evaluate the
jsNum
variable is to highlight the variable name
and execute it as a JavaScript expression, as shown below in
Figure 2.4.
F
IGURE
2.4
Evaluating jsNum
36
Acrobat JavaScript Scripting Guide