Closure in for loop

I don’t understand why this doesn’t work: function returnVerse(x){ return function(x) {console.log(x);}; } for(var x = 9; x>=0; x–){ return returnVerse(x)(); } I just get undefined as a …