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])
}
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.
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.