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

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

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

asp.net mvc - breakpoint on javascript in CSHTML? -