Which of the following is an illegal array initialization statement?
a.
```
var n = [ 10, 20, 30, 40, 50 ];
```
b.
```
var n = new Array( 10, 20, 30, 40, 50 );
```
c.
```
var n = new Array( 5 );
n = [ 10, 20, 30, 40, 50 ];
```
d.
```
var n = new Array( 5 );
for ( var i = 1; i <= 5; i++ )
n[ i ] = i * 10 ;
```
c.
```
var n = new Array( 5 );
n = [ 10, 20, 30, 40, 50 ];
```
Computer Science & Information Technology
You might also like to view...
The ____________________ Expression Web server type is used to publish site files from a local computer to a remote server.
Fill in the blank(s) with the appropriate word(s).
Computer Science & Information Technology
One way to build a heap is, given an array of data that are not a heap, to rearrange the elements in the array to form a heap.
Answer the following statement true (T) or false (F)
Computer Science & Information Technology