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; }
Does javascript support automatic type conversion?
What are different types of inheritence? Which inheritance is followed in javascript.
What is an asynchronous programming? Why is it important in javascript?
What is the difference between scripting and programming?
How long does it take to get good at javascript?
Name some of the built-in methods and the values returned by them.
What is namespacing in javascript and how is it used?
Explain equality operators in javascript?
What is an example of javascript?
How to get the last index of a string in javascript?
How to accessing elements using javascript?
What are the string methods?
What is the difference between firstChild and firstElementChild?
How to write a script for "select" lists using javascript