How to read elements of array in javascript
Answers
Answered by
2
To access one of the elements inside an array, you'll need to use the brackets and a number like this: myArray[3] . JavaScript arrays begin at 0 , so the first element will always be inside [0] . To get the last element, you can use brackets and `1` less than the array's length property.
Chaudharyji1628:
Nyc
Similar questions