how to count number of rows in a 2d 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