2.9.4 Constructor Functions
These functions receive an input of a parameter and then create and return an object.
Function
Description
Example of usage
Result
Array(n)
Array(a, b, c)
Creates and returns an array of “n” elements
The initial value of the element is 0.
A multidimensional array is created if two or more elements are designated.
Refer to "4.1 Arrays".
Array(900)
Array(3,4)
Array [900]
Array [3] [4]
Last updated
Was this helpful?