Quotes help make search much faster. Example: "Practice Makes Perfect"

Monday, December 3, 2012

Codecademy: Codeyear Tally race times


//sample solution

var raceTimes = [12.2,11.8,12.5,10.9,11.1];
var totalTime = 0;
for ( i = 0; i < raceTimes.length; i++ ) {
  totalTime = totalTime + raceTimes[i];
}
var averageTime = totalTime/raceTimes.length;
console.log(averageTime);

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts