Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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;

}


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More JavaScript Interview Questions

Should I disable javascript?

0 Answers  


Name the types of functions.

0 Answers  


How to detect the operating system on the client machine?

0 Answers  


What is external javascript?

0 Answers  


What does dynamic component in javascript contain?

0 Answers  


What e means?

0 Answers  


What is null variable?

0 Answers  


Write JavaScript code to use file system in binary format?

0 Answers  


What are escape characters?

0 Answers  


Which built-in method returns the character at the specified index?

0 Answers  


What is an external javascript?

0 Answers  


what is a difference of subclass and main class

0 Answers  


Categories