Answers for "array asociativo multidimensional javascript"

0

array asociativo multidimensional javascript

<script type="text/javascript">
var myObj = { 
    fred: { apples: 2, oranges: 4, bananas: 7, melons: 0 }, 
    mary: { apples: 0, oranges: 10, bananas: 0, melons: 0 }, 
    sarah: { apples: 0, oranges: 0, bananas: 0, melons: 5 } 
}

document.write( myObject[ 'fred' ][ 'apples' ] );
Posted by: Guest on November-06-2020
1

javascript define multidimensional array

var iMax = 20;
var jMax = 10;
var f = new Array();

for (i=0;i<iMax;i++) {
 f[i]=new Array();
 for (j=0;j<jMax;j++) {
  f[i][j]=0;
 }
}
Posted by: Guest on September-30-2020

Code answers related to "array asociativo multidimensional javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language