JavaScript Global Reference

JavaScript Global Methods and Properties

The JavaScript global properties and methods can be used with all JavaScript objects.

FunctionDescription
decodeURI()Decodes a URI
decodeURI, Component()Decodes a URI component
encodeURI()Encodes a URI
encodeURI, Component()Encodes a URI component
escape()Deprecated. Use instead: encodeURI(), encodeURIComponent()
eval()Evaluates a string and executes it as if it was script code
isFinite()Determines whether a value is a finite, legal number
isNaN()Determines whether a value is an illegal number
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 instead: decodeURI(), decodeURIComponent()

JavaScript Global Properties

PropertyDescription
InfinityA numeric value that represents positive/negative infinity
NaN"Not-a-Number" value
undefinedIndicates that a variable has not been assigned a value
â €
â €

DevCrib is optimized for learning and training. Examples might be simplified to improve reading and learning. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using DevCrib, you agree to have read and accepted our terms of use, cookie and privacy policy.

Copyright 2022 by Michael Okwuosah. All Rights Reserved.

DevCrib