Base class library
# console
The 'console.log' method is used to output information in the console window. It can accept multiple parameters, concatenating their results for output.
# Math
# property
ELN10LN2LOG2ELOG10EPISQRT1_2SQRT2
Please refer to the 'ES5' standard for the specific use of the above properties.
# method
absacosasinatanatan2ceilcosexpfloorlogmaxminpowrandomroundsinsqrttan
# JSON
# method
- 'stringify(object)': Converts the 'object' object to a 'JSON' string and returns the string.
- 'parse(string)': Converts a 'JSON' string into an object and returns the object.
# sample 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
# property
MAX_VALUEMIN_VALUENEGATIVE_INFINITYPOSITIVE_INFINITY
Please refer to the 'ES5' standard for the specific use of the above properties.
# Date
# property
parseUTCnow
Please refer to the 'ES5' standard for the specific use of the above properties.
# Global
# property
NaNInfinityundefined
Please refer to the 'ES5' standard for the specific use of the above properties.
# method
parseIntparseFloatisNaNisFinitedecodeURIdecodeURIComponentencodeURIencodeURIComponent
Please refer to the 'ES5' standard for the specific use of the above properties.
Last update: 2022/08/11, 20:42:12