javascript - What two array indexes mean when placed one after another? -


i'm learning loops , can't part of below script - values [i][0] mean here? (code found in answer, described stopping condition). end , start of array?

function getfirstemptyrowbycolumnarray() {   var ss = spreadsheetapp.getactivespreadsheet();  var values = ss.getrange( 'a:a' ).getvalues();  var = 0;   while ( values[ ] && values[ ] [ 0 ] != "" ) {  i++;  } return ( +1 );  } 

values more dimensional array. first index points array , second index gives element of array. can imagine matrix rows , columns. first index row , second column.

if want know more multi dimensional arrays in javascript can check out answers question: how can create 2 dimensional array in javascript?


Comments

Popular posts from this blog

php - Passing multiple values in a url using checkbox -

compilation - PHP install fails on Ubuntu 14 (make: *** [sapi/cli/php] Error 1) PHP 5.6.20 -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -