(function($) {
// Code that uses jQuery
})(jQuery);
This code creates a local alias for jQuery to avoid conflicts with other libraries. It's a common pattern known as 'jQuery noConflict wrapper'. By passing the global jQuery object as an argument to the IIFE and assigning it to the parameter '$', the code inside the IIFE can use the convenient '$' shorthand without risking conflicts with other libraries that might also use the '$' symbol. This pattern was especially popular when jQuery was more commonly used alongside other libraries that might compete for the '$' identifier. It's an example of how IIFEs can be used to create a controlled environment for library usage.