30.
What is the correct way to access an element in an array in JavaScript?
arr[0]
arr.get(0)
arr.getElement(0)
arr.element(0)
Correct: A
In JavaScript, array elements are accessed using square brackets notation followed by the index of the desired element. The index starts at 0, so to access the first element of an array, you would use arr[0].