console
The console.log method is used to output information to the console window. It can accept multiple arguments and concatenates their results for output.
Math
Properties
ELN10LN2LOG2ELOG10EPISQRT1_2SQRT2
For specific usage of the above properties, please refer to the
ES5standard.
Methods
absacosasinatanatan2ceilcosexpfloorlogmaxminpowrandomroundsinsqrttan
For specific usage of the methods above, please refer to the
ES5standard.
JSON
Methods
stringify(object): Converts theobjectto aJSONstring and returns the string.parse(string): Parses theJSONstring into an object and returns the object.
Example Code:
console.log(undefined === JSON.stringify());
console.log(undefined === JSON.stringify(undefined));
console.log("null"===JSON.stringify(null));
console.log("111"===JSON.stringify(111));
console.log('"111"'===JSON.stringify("111"));
console.log("true"===JSON.stringify(true));
console.log(undefined===JSON.stringify(function(){}));
console.log(undefined===JSON.parse(JSON.stringify()));
console.log(undefined===JSON.parse(JSON.stringify(undefined)));
console.log(null===JSON.parse(JSON.stringify(null)));
console.log(111===JSON.parse(JSON.stringify(111)));
console.log("111"===JSON.parse(JSON.stringify("111")));
console.log(true===JSON.parse(JSON.stringify(true)));
console.log(undefined===JSON.parse(JSON.stringify(function(){})));
Number
Properties
MAX_VALUEMIN_VALUENEGATIVE_INFINITYPOSITIVE_INFINITY
For specific usage of the above properties, please refer to the
ES5standard.
Date
Attributes
parseUTCnow
For specific usage of the above attributes, refer to the
ES5standard.
Global
Properties
NaNInfinityundefined
For specific usage of the above properties, refer to the
ES5standard.
Methods
parseIntparseFloatisNaNisFinitedecodeURIdecodeURIComponentencodeURIencodeURIComponent
For details on how to use the above methods, please refer to the
ES5standard.