What is the difference between $(function () {}) and (function () {} ())?

in jquery
$(function(){

})
What are the differences between

and self-closing functions?

(function(){}(

))

jquery that is the callback function, which is equivalent to:

  

upstairs explanations are all in place!

Menu