Output: a function and a var with the same name in one scope, logged before and after assignment
MediumP2Output
What does this code print?
1console.log(typeof foo);2var foo = 'text';3function foo() {}4console.log(typeof foo);
Saved automatically
One line per console.log. Arrays as [1, 2, 3], objects as { a: 1 }, an uncaught error as Uncaught TypeError: message (Chrome and Node wording).
Hints
Saved automatically