How to get size of items in an array?

Bynayakdillip

How to get size of items in an array?

JavaScript Array length Property
length:it returns size(no.of items ) of an array

Example:-

var languageArray=['c#','c','java'];
//its diplay like c#,c,java
alert(languageArray);

//remove last item using pop method
var arraylength=languageArray.length;
alert(arraylength);

//it will print 3(no of items in languageArray is 3)

About the author

nayakdillip administrator

Leave a Reply