JavaScript has several objects included in its core, for example,
there are objects like Math, Object, Array, and String.
The example below shows how to use the Math object to get a random number by using its
The example below shows how to use the Math object to get a random number by using its
random() method.console.log(Math.random());
Standard objects (by category)
Value properties
Global properties returning a simple value.Function properties
Global functions returning the result of a specific routine.eval()uneval()isFinite()isNaN()parseFloat()parseInt()decodeURI()decodeURIComponent()encodeURI()encodeURIComponent()escape()unescape()
Fundamental objects
General language objects, functions and errors.ObjectFunctionBooleanSymbolErrorEvalErrorInternalErrorRangeErrorReferenceErrorSyntaxErrorTypeErrorURIError
Numbers and dates
Objects dealing with numbers, dates and mathematical calculations.Text processing
Objects for manipulating texts.Indexed collections
Collections ordered by an index. Array-type objects.ArrayInt8ArrayUint8ArrayUint8ClampedArrayInt16ArrayUint16ArrayInt32ArrayUint32ArrayFloat32ArrayFloat64Array
No comments:
Post a Comment