JavaScript Number Object Number object property
| Properties |
Description |
| Constructor |
Returns a reference to the number function that created this object. |
| Max_value |
The maximum number that can be represented. |
| Min_value |
The smallest number that can be represented. |
| NaN |
Non-numeric value. |
| Negative_infinity |
Negative infinity, which returns this value when overflow. |
| Positive_infinity |
Positive infinity, which returns this value when overflow. |
| Prototype |
gives you the ability to add properties and methods to an object. |
Number Object method
| Method |
Description |
| Tostring |
Converts a number to a string, using the specified cardinality. |
| toLocaleString |
Converts a number to a string, using the local number format order. |
| ToFixed |
Converts a number to a string, the result of which has a specified number of digits after the decimal point. |
| Toexponential |
Converts the value of an object to an exponential count method. |
| Toprecision |
Formats the number as the specified length. |
| ValueOf |
Returns the base numeric value of a number object. |
Array Object Properties
| Properties |
Description |
| Constructor |
Returns a reference to the array function that created this object. |
| Length |
Sets or returns the number of elements in the array. |
| Prototype |
gives you the ability to add properties and methods to an object. |
Array Object method
| Method |
Description |
| Concat () |
Joins two or more arrays and returns the result. |
| Join () |
Put all the elements of the array into a string. element is delimited by the specified delimiter. |
| Pop () |
Delete and return the last element of the array |
| Push () |
Adds one or more elements to the end of the array and returns the new length. |
| Reverse () |
Reverses the order of the elements in the array. |
| Shift () |
Delete and return the first element of the array |
| Slice () |
Returns the selected element from an existing array |
| Sort () |
Sorting elements of an array |
| Splice () |
Deletes the element and adds a new element to the array. |
| Tosource () |
Returns the source code for the object. |
| ToString () |
Converts the array to a string and returns the result. |
| toLocaleString () |
Converts the array to a local array and returns the result. |
| Unshift () |
Adds one or more elements to the beginning of the array and returns the new length. |
| ValueOf () |
Returns the original value of an array object |
JavaScript Number object JavaScript Array object