Pages

array length in java script

Thursday, 5 April 2012

array length in java script
by using this property we can get the total number of elements
<script>
function fun1()
{
arr=newarray(10,20,30)
alert(arr.length[]);
}
</script>
<input type="button" value="click"onclick=f"fun1()">
 
 

Most Reading