HTML CSS Bootstrap Javascript Icons Python
JavaScript Reference
JS Reference
JS Array Object JS Boolean Object JS Date Object JS Style Declaration Object JS Error Object JS Global Object JS Math Object JS Number Object JS String Object JS RegExp Object JS Statements
DOM Reference
DOM Attribute DOM Console DOM Document DOM Element DOM Events DOM Event Objects DOM History DOM HTMLCollection DOM Location DOM Navigator DOM Screen DOM Style DOM Window WEB Storage

JavaScript Global Reference

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

JavaScript Global Properties

The following table lists the JavaScript Global properties:

Property Description
Infinity A numeric value that represents infinity
NaN "Not-A-Number" value
undefined Indicates that a variable has not been assigned a value
null (literal) Represents the intentional absence of any object value

JavaScript Global Functions

The following table lists the JavaScript Global functions:

Function Description
decodeURI() Decodes a URI
decodeURIComponent() Decodes a URI component
encodeURI() Encodes a URI
encodeURIComponent() Encodes a URI component
escape() Deprecated. Use encodeURI() or encodeURIComponent() instead
eval() Evaluates JavaScript code represented as a string
isFinite() Determines whether the passed value is a finite number
isNaN() Determines whether a value is NaN
Number() Converts an object's value to a number
parseFloat() Parses a string and returns a floating point number
parseInt() Parses a string and returns an integer
String() Converts an object's value to a string
unescape() Deprecated. Use decodeURI() or decodeURIComponent() instead