What is does (0 & 1) do in JavaScript? : <p>I am looking through the source of a library I'm working with, and I found something I haven't seen before.</p>

<pre><code>$(item).each(function(child) {
        oddEven = (i &amp; 1);
        targetNode.append(jasper_build_product(this,oddEven));
        i++;
    });
</code></pre>

<p>Notice the <code>oddEven = (i &amp; 1);</code>. What does the <code>(i &amp; 1)</code> part do? I'm particularly curious about the ampersand.</p>
