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
If an array with name as "names" contain three elements, then how will you print the third element of this array?
What are trailing whitespace?
The below script is working Internet browser but not working in mozilla plz find that good way... function doSubmit(op){ var rowcount=document.getElementsByName ("parameterTypeId").length; var parameterGrade; var performance; var goal; if(op == "save"){ for (var i=0; i < rowcount; i++) { var param=eval("document.forms [0].parameterGrade"+i); if(param.value != "select"){ return true; } } alert("Please rate atleast one attribute"); return false; }//if ends here
What is viewstate in javascript?
What is a closure javascript? Explain
What percentage of websites use javascript?
what difference between args.length and args.length() in command line argument?
Explain the term closure?
What is the difference between innerhtml and append() in javascript?
how can i change colour of a image in aspx file?
What is the difference between attributes and property?
What are the main features of javascript?
What would be the result of 2+5+”3″?
Does html5 replace javascript?
Write a program to reverse a string in pure javascript?