How to call functions in jquery externally.

I just learned jqery recently. How can I call this.

(function ($) {
    "use strict";
    var LY = {
            xx : function (url,data) {},
            yy : function (url,data) {}
    }   
})(jQuery);
//
$.LY.xx(url,data);
May.22,2021

1. function ($) {"use strict";} ;
this is the definition method of an anonymous function
2. (function ($) {"use strict";}) (jQuery)
this is the call to the anonymous function, passing the jQuery object to $
3. The greatest advantage of this way of writing is the formation of closures. In (function ($) {. }) (jQuery) internally defined functions and variables can only be valid within this scope, that is, the LY object you define can only use
4 in anonymous functions. Is it your intention to extend custom methods to $(jquery) , if you can use the following methods
jQuery
1.$.extend()

<script> 
      $.extend({
        print1:function(name){ //print1name
            console.log(name)
        }
    });
     $.print1("") ; //$.();
</script>     

2.($.fn.extend())
<body>
    <input type="text">
    <script>
            $.fn.extend({
            getMax:function(a,b){
                var result=a>b?a:b;
                console.log(result);
            }
        });
        $("input").getMax(1,2);        //$().();
    </script>
</body>

(function ($) {
    "use strict";
    $.LY = {
            xx : function (url,data) {},
            yy : function (url,data) {}
    }   
})(jQuery);
Menu