understanding shorthand document.ready
hello guys , i just have a simple jquery question , now look at the function below ::
- (function(){
-
- console.log('hello');
-
- })();
its a very simple IIFE now the jquery document.ready has a very simple and similar shorthand , like so ::
- $(function(){
-
- console.log('hello');
-
- })();
just the dollar in the beginning , now how does .
- $(document).ready(function(){});
ever turn into
Thank you.
Gautam.