| Viewed 66 times

How to get length of array in javascript


How to find the length of an array in javascript

1 Answer
Mohammad Qandeel
Answered
26

You can check array length in javascript using the  length property, it returns the length of an array (the number of array elements).

example

var number= ["1", "2", "3", "4"];
alert(number.length);
 


Related Questions