1

What's the etymology of such terminology? Where does it come from? What does it stand for?

3
  • 2
    Do you mean jQuery.fn? I don't think fn has special meaning in the Javascript language per se... Commented Jul 31, 2012 at 19:13
  • Oh, ok. My bad. So sure. Why is it called fn?
    – haxxerz
    Commented Jul 31, 2012 at 19:18
  • 1
    because fu was too offensive.
    – jbabey
    Commented Jul 31, 2012 at 19:25

3 Answers 3

4

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()'.
2

The etymology is mathematical. f(n) is mathematical nomenclature representing a function.

2
  • The mathematical etymology is f(x) normally though, not n
    – Alex
    Commented Jul 31, 2012 at 19:21
  • @AlexW in computer science we generally use n instead of x (see here)
    – jbabey
    Commented Jul 31, 2012 at 19:24
1

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.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.