Skip to content

Instantly share code, notes, and snippets.

@tal
Created February 25, 2014 21:11
Show Gist options
  • Save tal/9217852 to your computer and use it in GitHub Desktop.
Save tal/9217852 to your computer and use it in GitHub Desktop.
Array.prototype.map = function() {}
Array.prototype.select = function() {}
var array = [1,2,3,4,5],
sum = 0;
for (var i in array) {
sum += array[i];
}
console.log(sum);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment