Java Reference
In-Depth Information
call(thisObj,
arg1, ...)
JavaScript 1.3
Identical to apply() , except arguments are passed
individually instead of in an array.
JavaScript 1.1
Converts the Function object into a string.
toString()
JavaScript 1.1
Returns the primitive value of the Function object.
valueOf()
Json
The JSON object contains methods for parsing JavaScript Object Notation (JSON) into objects and
serializing JavaScript objects into JSON. Introduced in JavaScript 1.8.5, the JSON object is a top‐
level object, which can be accessed without a constructor.
Methods
Method
introduced
description
JavaScript 1.8.5
Transforms JSON into a JavaScript object or value.
parse(json)
JavaScript 1.8.5
Transforms a JavaScript object or value into JSON.
stringify(obj)
Math
The Math object provides methods and properties used for mathematical calculations. Introduced in
JavaScript 1.0, the Math object is a top‐level object, which can be accessed without a constructor.
Properties
property
introduced
description
JavaScript 1.0
Returns Euler's constant (the base of natural logarithms;
approximately 2.718).
E
JavaScript 1.0
Returns the natural logarithm of 10 (approximately 2.302).
LN10
JavaScript 1.0
Returns the natural logarithm of 2 (approximately 0.693).
LN2
JavaScript 1.0
Returns the Base 10 logarithm of E (approximately 0.434).
LOG10E
JavaScript 1.0
Returns the Base 2 logarithm of E (approximately 1.442).
LOG2E
JavaScript 1.0
Returns pi, the ratio of the circumference of a circle to its
diameter (approximately 3.142).
PI
JavaScript 1.0
Returns the square root of 1/2 (approximately 0.707).
SQRT1_2
JavaScript 1.0
Returns the square root of 2 (approximately 1.414).
SQRT2
Search WWH ::




Custom Search