This fails in Firefox, Chrome, and maybe others.
Copy-and-paste all three lines (at the same time) into a debug console to try it for yourself.
function foo() { /* code goes here */ }
foo() // There is no semi-colon here. Add one to fix there error.
(function() { /* anonymouse function */ })() // bork!
Bork! TypeError: undefined is not a function