How to create 3-dimensional Array in Javascript?

Answers were Sorted based on User's Feedback



How to create 3-dimensional Array in Javascript?..

Answer / upendar

array[][] = new Array();

Is This Answer Correct ?    5 Yes 1 No

How to create 3-dimensional Array in Javascript?..

Answer / 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

How to create 3-dimensional Array in Javascript?..

Answer / sumit

int a[][][] = new int[i][j][k];

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JavaScript Interview Questions

How to change the background color of HTML document using JavaScript?

0 Answers  


About document.getElementID? Explain giving one example. This was asked by a interviewer when i said that i know some JavaScript.

2 Answers   TCS,


What is the use of the ‘this’ keyword?

0 Answers  


Is not a function error in javascript?

0 Answers  


What does isNaN function do?

2 Answers   Satyam,






What does === mean in js?

0 Answers  


What are different types of scope chain available in javascript?

0 Answers  


how can we retrieve value from one database server and store them another database server using sql server code

0 Answers   HP,


What is NaN in Javascript?

0 Answers  


What is the difference between client side javascript and server side javascript.

0 Answers  


What is javascript in simple terms?

0 Answers  


What is a method in javascript?

0 Answers  


Categories