For and While loops in functions?

Why am I having such a hard time, I can’t believe it…

Log the numbers 1 - 10…

function yourCode(console) {
  for (var i=0; i<11; i++){
	}
console.log(console[i])
}

Console.log is not in the for loop

try putting the log inside the bracket scope…
{
log here
}

Still doesn’t work? I’m not sure what the problem is. Still get undefined.

Please repost your latest code.

function yourCode(console) { 
    for(let i=0; i<11; i++){
        console.log(i)
    }
  }

I’m just really bad with arguments passing through functions. I never know which to return.

Nevermind, I solved it. Thanks.