The function in your second example is no longer anonymous... it has a name, initSomething.
The first syntax is commonly used to set up a closure... trapping var x, y, z and what not within it so that they doesn'tdon't conflict with any other variables namedwith the same thingname outside of the closure.