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

Can I learn javascript without html?

0 Answers  


What are javascript closures?when would you use them?

0 Answers  


What are the requirements of web application using javascript?

0 Answers  


How do you declare in javascript?

0 Answers  


TypeError: document.getelementbyid(...) is null?

0 Answers  


Explain window.onload and ondocumentready?

0 Answers  


What is the difference between innerhtml & innertext?

0 Answers  


How to define a anonymous function?

0 Answers  


How javascript variables work?

0 Answers  


Is javascript case sensitive language?

0 Answers  


Is javascript a programming language?

0 Answers  


What is the difference between ‘var’ and ‘let’ keyword?

0 Answers  


Categories