What does the code snippet to the right output by console.log?
console.log
function a() { console.log(1) return { a: function() { console.log(2) return a() } } } a().a()
Source Fromopen in new window