Java
T
point
Home
Python
Java
JavaScript
HTML
SQL
PHP
C#
C++
DS
Aptitude
Reasoning
Selenium
DBMS
C
Android
Interview Q
Content Menu ▼
1
2
3
4
5
6
7
8
9
10
Question 1
:
The JavaScript statement a = new Array(2,4)
1.
defines a new two-dimensional array a whose dimensions are 2 and 4.
2.
defines an array a and assigns the values 2 and 4 to a[1] and a[2].
3.
defines an array a and assigns the values 2 and 4 to a[0] and a[1].
4.
defines a three-element array whose elements have indexes 2 through 4.