Skip to content

Instantly share code, notes, and snippets.

@trobertson
trobertson / fun.js
Created December 13, 2012 20:30 — forked from zachallaun/fun.js
var data = [0,1,2,3,4,5,6,7,8,9];
function test() {
var g = window;
g.result = [];
for(var i = 0; i < data.length; i++) {
if(data[i] % 2 === 0) {
g.result.push(data[i]*2);
}
}