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

Why would you use a sticky session?

0 Answers  


Write a program to check whether a given number is a palindrome or not?

13 Answers  


What is "strict mode" and how is it used in JavaScript?

0 Answers  


How do Javascript primitive/object types passed in functions?

0 Answers  


In javascript chained select menus are available.first select menu is worked and others are disabled.when we select any one option then the next select menu will worked having option releated to selcted in first select menu.How it possible? what is the coading of this programme?

1 Answers  






Can you explain how inheritance works in javascript?

0 Answers  


Is javascript free to install?

0 Answers  


How to capture the Image width and height using QTP script ? Kindly answer plz.... Thanx in adavance...

0 Answers  


What is the default data type in javascript?

0 Answers  


If you need to hide the javascript code from the older browser versions, how will you perform it?

0 Answers  


You have an asp. Net web application running on a web-farm that does not use sticky sessions - so the requests for a session are not guaranteed to be served the same machine. Occasionally, the users get error message validation of view state mac failed. What could be one reason that is causing this error?

0 Answers  


Do hackers use javascript?

0 Answers  


Categories