NEW
Font size
WorksheetsArrays Javascript (CodeCademy)
Total questions: 10
Worksheet time: 9mins
array = [2,0,3,5,4] What is the length of this array?
5
4
0
125.4
Which definition below best describe an array?
An array is a function identifier that can hold more than one parameter.
An array is a beam of light.
An array is a special variable, which can hold more than one value at a time.
An array is a special function, which can hold more than one value at a time.
What is proper syntax for declaring a array in JavaScript?
const arrayName =[ ];
let arrayName[ ] ={ };
array arrayName ={ };
obj var arrayName =[ ];
What is the highest position in this array?
HINT: Remember arrays start at position 0!
The length() method for an array will return _____.
the number of elements in the array
the last index value of the array.
the length of the name of the array variable
the capacity of the array
The push() method adds a new element to the end of an array
true
false
When we can change the contents of an array, but cannot reassign the variable name to a new array or other data type.
Muteable
Arrow Function
Global Scope
