Visit Mozilla.org

Referencia de JavaScript 1.5:Funciones globales

De MDC


This chapter contains all JavaScript functions not associated with any object. In the ECMAScript specification, these functions are referred to as methods of the global object.

Array
Creates an Array object. Array(...) is equivalent to new Array(...).
Boolean
Converts a value to a boolean.
Date
Returns a string representation of the current date and time.
decodeURI
Decodes a URI which has been encoded with encodeURI.
decodeURIComponent
Decodes a URI which has been encoded with encodeURIComponent.
encodeURI
Computes a new version of a complete URI replacing each instance of certain characters with escape sequences representing the UTF-8 encoding of the characters.
encodeURIComponent
Computes a new version of components in a URI replacing each instance of certain characters with escape sequences representing the UTF-8 encoding of the characters.
Error
Creates a Error object. Error(...) is equivalent to new Error(...).
eval
Evaluates a string of JavaScript code without reference to a particular object.
Function
Creates a Function object. Function(...) is equivalent to new Function(...).
isFinite
Evaluates an argument to determine whether it is a finite number.
isNaN
Evaluates an argument to determine whether it is not a number.
Number
Converts a value to a number.
Object
Converts a value to an object.
parseFloat
Parses a string argument and returns a floating-point number.
parseInt
Parses a string argument and returns an integer.
RegExp
Creates a RegExp object. RegExp(...) is equivalent to new RegExp(...).
String
Converts a value to a string.

[editar] Ver también

Propiedades globales