title: Javascript Reduce Method Creating Accumulator Object
body: <pre><code>var numbers = [5, 3, 8, 6, 9, 1, 0, 2, 2];
  var oddEvenCounts = numbers.reduce(function(counts, number) {
    if (isOdd(number)) {
      counts[odd]++;
    } else {
      counts[even]++;
    }
  }, {});
  </code></pre>
  
  <p>I am looking for the bug in this bit of code (still learning the reduce method ;)) –– where am I going wrong?</p>