Finding the first two numbers that sum to a given number
Some issues with the code:


close isn't defined anywhere and will shoot up to the global scope.
Your variables are terribly named. Use names that make sense.
Suggesting a var per variable so they become portable. You can easily copy and paste without having to remove the comma and re-add the var.
I am not sure why you would need parseInt for the end part of your logic when ints appears to be an array of numbers.
Prefer function declaration (function foo(){}) over function expression (var foo = function(){}). Although variables and functions have the same namespace, function declarations get hoisted. They will always be available regardless if they appear later in the code.
JS uses camelCase convention.


For performance:


I suggest you keep a hash of first values so that whenever they come up again, like [ 1, 2, 3, 1, 6, 7], you can skip the second time it occurs, saving you a full run through the array.


Here's my take on it:

function sumPairs(numbers, sum){
  let first = null;
  let second = null;
  let firstHistory = {};

  for(let i = 0; i &lt; numbers.length; i++){
    first = numbers[i]

    // Skip if we've already seen this number as the first number
    if(firstHistory[first]) continue;

    // Remember that we've seen this number before
    firstHistory[first] = true;

    for(let j = 0; j &lt; numbers.length; j++){
      second = numbers[j];

      // Skip if we're on the same index
      if(i === j) continue;

      // Return once we've found it. Forget the rest.
      if(first + second === sum) return [first, second];
    }
  }

  // The only time the function ever reaches this point is when it never
  // returned (it never found the values). Functions return an implicit
  // undefined, which satisfies your "not found" case.
}


It doesn't cover one test case though. It sees [10, 5, 2, 3, 7, 5] as [5, 5] instead of [3, 7]. However, the definition of "earlier" in the condition is not clear. [5, 5] is found earlier than [3, 7] from an execution perspective.

And it might not be perfect, but the idea is there.