This came from an interview question via a friend.
Is there a difference between the following function declarations?
function foo() {
// do something
}
and
function foo()
{
// do something
}
The interviewer only said that the DOM treats these differently. I can't find anything online about this though so I am curious if anyone has heard of this before.