I have used jQuery for a while and understand the basics of selectors and chains. I am now ready to dive into advanced javascript concepts. Now I'm confused with multi-roles of jQuery.
For example,
jQuery.add(...)
This seems to me that jQuery is a javascript Object that we can send a message to.
jQuery(function() {...}) or jQuery(...selector...)
This time, jQuery seems to be a javascript Function that can take some parameters.
What is it exactly?
jQuery, it must be a function. But functions are objects too. You can assign any property to it (likeadd).