202k views
5 votes
Array is special variable that can handle more than one value.

Select one:

a. True

b. None of these

c. False

d. Sometimes

User Smelm
by
5.2k points

1 Answer

3 votes

Answer:

a. True

Step-by-step explanation:

Array is a special variable that can handle more than one value.

For example:

var Numbers = ["0","1","2","3","4","5","6","7","8","9"];

Here the variable numbers is assigned an array of 10 values from "0" - "9".

In order to access any particular element we use the syntax: Numbers[index].

For example: alert (Numbers[0]) will display the value "0".

The number of values in the array can be determined using the length property. For example: Numbers.length will return 10 as it contains 10 elements.

User Davoclavo
by
4.7k points