Possible Duplicates:
JavaScript: Why the anonymous function wrapper?
A Javascript function
How does the (function() {})() construct work and why do people use it?
I saw some code in javascript in following format :
(
function()
{
//stmt
}
)();
Why exactly do we use these standalone parentheses? Thank you.