I have some repeatable functions created with jQuery I want to reuse. I could write them in functions(), but another one I'm seeing is a plugin in the form of
jQuery.fn =
so I'm not sure if I should write functions or use the plugin form, what is the difference? The code within my function is rather large, should I then use the plugin form?