What does the code snippet to the right output by console.log?
console.log
function foo() { console.log(i) for (var i = 0; i < 3; i++) { console.log(i) } } foo()
Source Fromopen in new window