In a Javascript programming community, someone asked "How to declare anonymous method and run it immediately?" then others answered (function(){})() and (function(){}()).
People who answered (function(){}()) says that is correct and it's possible to run, but ideone says that is wrong and I think that is incorrect.
Following links are for comparison between SpiderMonkey and Rhino.
http://ideone.com/rKaYtW
http://ideone.com/Lblb7w 
Is (function(){}()) really correct on Javascript?
 
    