function twoSum(numbers, target) { for (i = 0; i < numbers.length; i++) { second = numbers.indexOf(target - numbers[i], i+1); if (second > i) { return [i, second]; } } }