17.
Which method can be used to find the number of elements in an array in JavaScript?
.count()
.size()
.length()
.length
Correct: D
In JavaScript, to find the number of elements in an array, you can use the .length property. It returns the total count of elements present in the array. The correct syntax for accessing the length of an array is by using the .length property.