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
How to change the background color of HTML document using JavaScript?
How to prevent modification of an object in Javascript?
How do I open a .js file?
What is enum data type?
What is dataview in javascript?
Can we create session in javascript?
How to comment javascript code?
How javascript sort function works?
Write a Program using Servlet and JDBC for developing online application for displaying the details of Cars owned by the residents in XYZ society. Make necessary assumptions and create appropriate databases
How do I unblock javascript in chrome?
How to setting a cookie with the contents of a textbox?
How do I add javascript to chrome?
Write about the errors shown in javascript?
What is a function in javascript and how does it work?
What is npm javascript?