function evenOnly(array) { var onlyEven = []; for (i = 0; i < array.length; i++) { if (array[i] % 2 === 0) { onlyEven.push(array[i]); } } return onlyEven; }