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
English,
9 months ago
Social Sciences,
9 months ago
Physics,
9 months ago
Science,
1 year ago
English,
1 year ago