arr.length This will give you the number of rows in your 2D array
arr[i].length This will give you the number of colonies of a particular line ....
Therefore, arr[i].length reduces the time it takes to use it in a loop ...
This means that if line 0 has 3 values ββand line 1 has 2 values ββ...
prabhat mishra
source share