The $.fn statement

In jQuery, there are some code like below:

$.fn.something = function{}

What does the $.fn mean in jQuery?


The $.fn is an alias for jQuery.prototype which allows you to extend jQuery with your own functions.

For example:
$.fn.something = function{}

will allow you to use


The $.fn is also synonymous with jQuery.fn.

References & Resources