i have read that (function(){})();
is called immediately and doesn't need to be called.
and $(function());
is also immediately called.
- are they both and have same functionality ?
- does the Immediately-Invoked Function loaded after the document is completely loaded ?
- what is the actual functionality of
$(function());
? - does
$(function());
after the document is completely loaded ?