One for the JavaScripters.
What is going to be logged in the console: foo or bar or …?
function foo() { return foo; } var f = foo(); f.name = 'bar'; console.log(f.name);