Widget:WJG Sandbox: Difference between revisions

Jump to navigation Jump to search
No edit summary
No edit summary
Line 1,034: Line 1,034:
for(var i=0, len=qdist.length; i<len; i++){
for(var i=0, len=qdist.length; i<len; i++){
     myTotal += qdist[i];  //Iterate over your first array and then grab the second element add the values up
     myTotal += qdist[i];  //Iterate over your first array and then grab the second element add the values up
alert(myTotal);
}
}



Revision as of 17:10, 24 May 2014