|
|
Global
|
eval(statements) |
Parses statements as a statement
list, executes the statements and returns the value of the last
statement. |
NaN |
The not-a-number number.
|
Infinity |
Positive infinity.
|
parseInt(string) |
Parses string as an integer.
|
parseFloat(string) |
Parses string as a floating point number.
|
escape(url) |
Escapes url to encode characters illegal in the URL spec.
|
unescape(url) |
Undoes the url encoding.
|
isNaN(arg) |
True if arg, converted to a number, is the NaN value. |
isFinite(arg) |
True if arg is a finite number.
|
Parses statements as a statement
list, executes the statements and returns the value of the last
statement. The statements execute in the calling context, so
eval picks up local variables.
function foo(a)
{
return eval("a + 3");
}
foo(10);
|
13
|
The not-a-number number.
Positive infinity.
Parses string as an integer.
Parses string as a floating point number.
Escapes url to encode characters illegal in the URL spec.
Undoes the url encoding.
True if arg, converted to a number, is the NaN value.
isNaN(0/0) + " " + isNaN("100") + " " + isNaN("foo")
|
true false true
|
True if arg is a finite number.
Copyright © 1998-2000 Caucho Technology. All rights reserved.
Last modified: Thu, 16 Sep 1999 14:56:48 -0700 (PDT)
|