I'm a beginner in programming and I just wonder about one thing. To be exact the syntax of (function(){...}).()
This question has been probably asked but as I don't know what it is and how to call it, I had very small luck finding anything about this topic.
I have been checking some scripts lately and I noticed that in some of them people use:
(function(){
...
}).(something) //
So far I'm guessing it's something like function which calls itself right away? How do we use it and what are the advantages of this. What do I put inside where 'something' is? also sometimes before it starts it also has $
sign.