Computer Science, asked by GajendraParmar, 1 year ago

How to read elements of array in javascript

Answers

Answered by Rajputana007
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
Rajputana007: :)
Chaudharyji1628: Hm
Chaudharyji1628: Kaha se copy kiya ye
Similar questions