I've seen function(){}() used before, to create a function which then gets called immediately.
So in my node console window I typed the following:
function() { console.log('aoeu') }()
...
...
I was expecting aoeu to be logged as a side effect but it wasn't. 
Can anyone please explain why?
 
     
    