English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

JavaScript Global Properties/Function

JavaScript global properties and functions can be used with all built-in JavaScript objects.

JavaScript Global Properties

The following table lists the JavaScript global properties:

PropertyDescription
InfinityIndicates a value representing infinity
NaNA value indicating 'not a number'
undefinedIndicates that no value has been assigned to the variable
null (literal)Indicates the intentional absence of any object value

JavaScript global functions

The following table lists the JavaScript global functions:

FunctionDescription
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