How to convert “20” to number in javascript?
No Answer is Posted For this Question
Be the First to Post Answer
Explain function hoisting in javascript?
What is shift() method in javascript?
How are event handlers utilized in javascript?
How do you change the style/class on any element using javascript?
What e means?
how to get no of items from from weblist?
What is escape() function?
What does undefined value mean in javascript?
How would you check if a variable is null/undefined?
Explain how to detect the operating system on the client machine?
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; }
What is the purpose of using javascript?