# JavaScript Functions

The following table lists JavaScript functions.

## Functions

Function | Description | JavaScript object |
---|---|---|

abs Function | Returns the absolute value of a number. | `Math` |

acos Function | Returns the arccosine of a number. | `Math` |

asin Function | Returns the arcsine of a number. | `Math` |

atan Function | Returns the arctangent of a number. | `Math` |

atan2 Function | Returns the angle (in radians) from the X axis to a point (y,x). | `Math` |

ceil Function | Returns the smallest integer greater than or equal to its numeric argument. | `Math` |

cos Function | Returns the cosine of a number. | `Math` |

create Function | Creates an object that has a specified prototype, and that optionally contains specified properties. | `Object` |

decodeURI Function | Returns the unencoded version of an encoded Uniform Resource Identifier. | `Global` |

decodeURIComponent Function | Returns the unencoded version of an encoded component of a Uniform Resource Identifier. | `Global` |

defineProperties Function | Adds one or more properties to an object, and/or modifies attributes of existing properties. | `Object` |

defineProperty Function | Adds a property to an object, or modifies attributes of an existing property. | `Object` |

encodeURI Function | Encodes a text string as a valid Uniform Resource Identifier. | `Global` |

encodeURIComponent Function | Encodes a text string as a valid component of a Uniform Resource Identifier. | `Global` |

escape Function | Encodes `String` objects so they can be read on all computers. |
`Global` |

eval Function | Evaluates JavaScript code and executes it. | `Global` |

exp Function | Returns e (the base of natural logarithms) raised to a power. |
`Math` |

floor Function | Returns the greatest integer less than or equal to its numeric argument. | `Math` |

freeze Function | Prevents the modification of existing property attributes and values, and prevents the addition of new properties. | `Object` |

fromCharCode Function | Returns a string from a number of Unicode character values. | `String` |

GetObject Function | Returns a reference to an Automation object from a file. | `Global` |

getOwnPropertyDescriptor Function | Returns the definition of a data property or an accessor property. | `Object` |

getOwnPropertyNames Function | Returns the names of the properties and methods of an object. | `Object` |

getPrototypeOf Function | Returns the prototype of an object. | `Object` |

isArray Function | Returns a Boolean value that indicates whether an object is an array. | `Array` |

isExtensible Function | Returns a value that indicates whether new properties can be added to an object. | `Object` |

isFinite Function | Returns a Boolean value that indicates if a supplied number is finite. | `Global` |

isFrozen Function | Returns `true` if existing property attributes and values cannot be modified in an object and new properties cannot be added to the object. |
`Object` |

isNaN Function | Returns a Boolean value that indicates whether a value is the reserved value `NaN` (not a number). |
`Global` |

isSealed Function | Returns `true` if existing property attributes cannot be modified in an object and new properties cannot be added to the object. |
`Object` |

keys Function | Returns the names of the enumerable properties and methods of an object. | `Object` |

log Function | Returns the natural logarithm of a number. | `Math` |

max Function | Returns the greater of two supplied numeric expressions. | `Math` |

min Function | Returns the lesser of two supplied numbers. | `Math` |

now Function | Returns the number of milliseconds between January 1, 1970, and the current date and time. | `Date` |

parse Function (Date) | Parses a string containing a date, and returns the number of milliseconds between that date and midnight, January 1, 1970. | `Date` |

parse Function (JSON) | De-serializes JSON text to produce an in-memory object or array. | `JSON` |

parseFloat Function | Returns a floating-point number converted from a string. | `Global` |

parseInt Function | Returns an integer converted from a string. | `Global` |

pow Function | Returns the value of a base expression raised to a specified power. | `Math` |

preventExtensions Function | Prevents the addition of new properties to an object. | `Object` |

random Function | Returns a pseudorandom number between 0 and 1. | `Math` |

round Function | Returns a specified numeric expression rounded to the nearest integer. | `Math` |

ScriptEngine Function | Returns a string representing the scripting language in use. | `Global` |

ScriptEngineBuildVersion Function | Returns the build version number of the scripting engine in use. | `Global` |

ScriptEngineMajorVersion Function | Returns the major version number of the scripting engine in use. | `Global` |

ScriptEngineMinorVersion Function | Returns the minor version number of the scripting engine in use. | `Global` |

seal Function | Prevents the modification of attributes of existing properties, and prevents the addition of new properties. | `Object` |

sin Function | Returns the sine of a number. | `Math` |

sqrt Function | Returns the square root of a number. | `Math` |

stringify Function | Serializes an object or array into JavaScript Object Notation (JSON) text. | `JSON` |

tan Function | Returns the tangent of a number. | `Math` |

unescape Function | Decodes `String` objects encoded with the escape method. |
`Global` |

UTC Function | Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the supplied date. | `Date` |

write Function | Sends strings to the script debugger. | `Debug` |

writeln Function | Sends strings to the script debugger, followed with a newline character. | `Debug` |

## See Also

JavaScript Objects

JavaScript Methods

JavaScript Properties

JavaScript Constants

Version Information

JavaScript Reference