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 |
How do you reverse a string in javascript?
What is the role of break and continue statements?
What is the use of spread operator?
How can JavaScript be used?
0 Answers Deloitte, JPMorgan Chase,
How to check if a variable is an integer in javascript ?
Are Attributes and Property the same?
How to test for bad numbers using javascript?
What does === mean in js?
What is the output of 10+20+”30″ in JavaScript?
How to empty an array in JavaScript?
just for testing
How many functions are there in javascript?