Function object properties (Definition)

User defined properties added to a function object.

You can add your own properties to a function object. These can then be used as static variables inside the function. Since the function object persists, so do its properties. Variables declared inside the function with a var statement only persist while the function context is called and present in the scope chain.

See also:Static method, Static variable