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 |
Can I learn javascript without html?
What are javascript closures?when would you use them?
What are the requirements of web application using javascript?
How do you declare in javascript?
TypeError: document.getelementbyid(...) is null?
Explain window.onload and ondocumentready?
What is the difference between innerhtml & innertext?
How to define a anonymous function?
How javascript variables work?
Is javascript case sensitive language?
Is javascript a programming language?
What is the difference between ‘var’ and ‘let’ keyword?