How to create 3-dimensional Array in Javascript?
Answers were Sorted based on User's Feedback
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 |
What is Minification
Is it safe to use javascript?
Does javascript support foreach loop?
What is global variable in javascript?
What is enum in javascript?
What is the naming conventions for the variables in javascript?
How do I run javascript in chrome?
What is the default scope in javascript?
Consider the following code: 1 2 3 4 5 (function() { var a = b = 5; })(); console.log(b); what will be printed on the console?
What are javascript functions?
Why do you need javascript?
How to access the value of a textbox using javascript?