Question: I observe a different (different for me) way to write function of javascript or jquery,,,you guys kindly guide me about the working of this one.

```
(function () 
{
//some statements of javascript are sitting here
//some statements of javascript are sitting here
//some statements of javascript are sitting here
//some statements of javascript are sitting here
//some statements of javascript are sitting here
}()); 

```

Truly I'm not understanding `(function(){}());`.

No one is calling it but it is being called properly.

If any piece of tutorial you guys know, concerned to it, then tell me.

Answer: 
That is a [Immediately-Invoked Function Expression (IIFE)](http://benalman.com/news/2010/11/immediately-invoked-function-expression/). In other words, a function that gets executed when defined
Declaring a function without a name is normally used to assign that function into a variable. A useful trick which allows you to pass the entire function around and call it later.
In this case it's not being assigned to anything, but the extra set of brackets after the braces are effectively calling the function immediately.