What's the etymology of such terminology? Where does it come from? What does it stand for?
3 Answers
fn
is the traditional abbreviation for function
.
jQuery.fn
is an object, sometimes called a namespace, that is exposed by the global jQuery
object. Functions that are members of jQuery.fn
can be applied to jQuery objects:
$("#foo").hide(); // Here, 'hide()' is actually '$.fn.hide()'.
The etymology is mathematical. f(n) is mathematical nomenclature representing a function.
It's used in jQuery to be the property where plugins can assign themselves. It means function
as all plugins are self executing functions.
http://docs.jquery.com/Plugins/Authoring
The javascript object prototype property is called just that: object.prototype
and is used to help with object oriented JS.
jQuery.fn
? I don't thinkfn
has special meaning in the Javascript language per se...fn
?fu
was too offensive.