Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

JavaScript global properties/functions


May 06, 2021 JavaScript with HTML DOM Reference book


Table of contents


JavaScript Global


JavaScript global properties and methods can be used to create Javascript objects.


JavaScript global properties

Property Describe
Infinity A value that represents a positive infinity.
NaN Indicates whether a value is a numeric value.
undefined Indicates an undefined value.

JavaScript global function

Function Describe
decodeURI() Decode an encoded URI.
decodeURIComponent() Decode an encoded URI component.
encodeURI() Encode the string as a URI.
encodeURIComponent() Encode the string as a URI component.
escape() Encode the string.
eval() Calculate the JavaScript string and execute it as script code.
isFinite() Check if a value is a poor number.
isNaN() Check if a value is a number.
Number() Convert the value of the object to a number.
parseFloat() Resolve a string and return a float.
parseInt() Resolve a string and return an integer.
String() Convert the value of the object to a string.
unescape() Decode strings encoded by escape().