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
What is an onclick?
What does 3+4+"7" evaluate to?
How do I turn on javascript?
What is the javascript function?
How to get value from a textbox?
What are the valid scopes of a variable in JavaScript?
How do I write script-generated content to another window?
What are all the types of Pop up boxes available in JavaScript?
What is the use of type of operator?
Program to return the address family of a socket
What is the difference between null and undefined?
What is the difference between var and let?
What is the most widely used programming language?
Explain why asynchronous code is important in javascript?
Why is my javascript function not defined?