The JavaScript global properties and functions can be used with all the built-in JavaScript objects.
| Property | Description |
|---|---|
| Infinity | A numeric value that represents positive/negative infinity |
| NaN | "Not-a-Number" value |
| undefined | Indicates that a variable has not been assigned a value |
| Function | Description |
|---|---|
| decodeURI() | Decodes a URI |
| decodeURIComponent() | Decodes a URI component |
| encodeURI() | Encodes a URI |
| encodeURIComponent() | Encodes a URI component |
| escape() | Encodes a string |
| 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() | Decodes an encoded string |
Your message has been sent to W3Schools.