Skip to content

Instantly share code, notes, and snippets.

@henrikh
Created August 22, 2009 20:41
Show Gist options
  • Save henrikh/172975 to your computer and use it in GitHub Desktop.
Save henrikh/172975 to your computer and use it in GitHub Desktop.
function average(){
numbers=average.arguments;
sum=0;
for(var i=0; i<numbers.length; i++){
sum+=numbers[i]
};
return sum/numbers.length;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment