English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
JavaScript global properties and functions can be used with all built-in JavaScript objects.
The following table lists the JavaScript global properties:
Property | Description |
---|---|
Infinity | Indicates a value representing infinity |
NaN | A value indicating 'not a number' |
undefined | Indicates that no value has been assigned to the variable |
null (literal) | Indicates the intentional absence of any object value |
The following table lists the JavaScript global functions:
Function | Description |
---|---|
decodeURI() | Decode URI |
decodeURIComponent() | Decode URI components |
encodeURI() | Encode URI |
encodeURIComponent() | Encode URI components |
escape() | Not recommended for use.UseIs encodeURI()OrencodeURIComponent method ()Replace |
eval() | Execute the string passed in as JavaScript code. |
isFinite() | Determine if the passed value is a finite number |
isNaN() | Determine if the value is NaN |
Number() | Convert the value of the object to a number |
parseFloat() | Parse a string and return a floating-point number |
parseInt() | Parse a string and return an integer |
String() | Convert the value of the object to a string |
unescape() | Not recommended for use.UsedecodeURI()OrdecodeURIComponent()Replace |