JavaScript Function-Level Scoping
<p>In the following example, is a new variable 'y' created for each iteration through the for..in loop?  Or is the variable declaration hoisted to the top of the function, and re-used for each iteration?    </p>

<pre><code>function example() {
    var x;
    for(x in obj) {
       var y = obj[x];
    } 
}
</code></pre>

<p>Thanks</p>
