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?
function example() {
var x;
for(x in obj) {
var y = obj[x];
}
}
Thanks