18.
How can you retrieve the length of an array in JavaScript?
By calling the .length property on the array.
By using the size() method on the array.
By executing the getLength() function on the array.
By accessing the length function on the array.
Correct: A
To retrieve the length of an array in JavaScript, you can simply call the .length property on the array. This property returns the number of elements present in the array.