Answer Posted / m_xyz
var obj=new Object();
obj["age"]=18; or obj.age=18
| Is This Answer Correct ? | 19 Yes | 0 No |
Post New Answer View All Answers
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 server side or client side?
What Is The Disadvantages Using InnerHTML In JavaScript?
What is the use of anonymous function in javascript?
What javascript means?
Is it possible to do 301 redirects in javascript ?
What is javascript hoisting?
Why is javascript used for web pages?
How to achieve inheritance in javascript?
What is prototype in javascript and how do you use it?
Why is currying called currying?
What is variables in javascript?
What is difference between array.splice() and array.slice() method in javascript?
How will you create new object in javascript?
Can you put javascript in html?