count rows in mulitdaimentional array in javascript code example
Example: JS get 2d array row count
var air = [
['dragonfly', 'crane fly'],
['eagle', 'falcon'],
['jumbo jet','harrier'],
['mosquito', 'wasp']
];
alert(air.length); // 4
var air = [
['dragonfly', 'crane fly'],
['eagle', 'falcon'],
['jumbo jet','harrier'],
['mosquito', 'wasp']
];
alert(air.length); // 4