Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to create 3-dimensional Array in Javascript?

Answer Posted / anand prakash


for (i = 0; i < arr.length; i++) {

for (j = 0; j < arr[0].length; j++) {

arr[i][j] = new Array(3);
}

}

Is This Answer Correct ?    12 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If an array with name as "names" contain three elements, then how will you print the third element of this array?

1007


What are trailing whitespace?

969


The below script is working Internet browser but not working in mozilla plz find that good way... function doSubmit(op){ var rowcount=document.getElementsByName ("parameterTypeId").length; var parameterGrade; var performance; var goal; if(op == "save"){ for (var i=0; i < rowcount; i++) { var param=eval("document.forms [0].parameterGrade"+i); if(param.value != "select"){ return true; } } alert("Please rate atleast one attribute"); return false; }//if ends here

2557


What is viewstate in javascript?

1023


What is a closure javascript? Explain

926


What percentage of websites use javascript?

913


what difference between args.length and args.length() in command line argument?

2291


Explain the term closure?

1019


What is the difference between innerhtml and append() in javascript?

1268


how can i change colour of a image in aspx file?

1985


What is the difference between attributes and property?

1043


What are the main features of javascript?

1113


What would be the result of 2+5+”3″?

920


Does html5 replace javascript?

942


Write a program to reverse a string in pure javascript?

971