How can I define an array in JavaScript?
Answer Posted / hiren b garasia
4.dense method:
ex: var days=new
Array('Mon','Tue','Wed','Thus','Fri','Sat','Sun');
| Is This Answer Correct ? | 5 Yes | 4 No |
Post New Answer View All Answers
What are math constants and functions using javascript?
Is a function an object?
Why javascript is called lightweight language?
What is missing in my code? function numberTally(numList) { var evenTotal = 0; var oddTotal = 0; for (var i = 0; i <= numList.length; i++) { if i % 2 { // i is odd oddTotal += numList[i]; // or oddTotal = oddTotal + numList[i]; } else { // i is even evenTotal + numList[i]; } } alert(oddTotal); return evenTotal; }
Is javascript necessary?
What is jscript used for?
What is a scope in javascript?
How compare function works javascript?
What is the difference between childNode and children?
What is use of settimeout function in javascript?
What is eval() in javascript?
What is a class in javascript?
What does the attribute defer/async do when added to the script tag?
What makes something a function?
Taking a developer's perspective, do you think that that javascript is easy to learn and use?