function. So it can be used as an object and can have member variables. Also note that every function also has a member variable prototype. Here are some code examples.
Using function as object example
This example is setting a variable
f using a function expression and then setting a property of it.
jQuery is also a function
$("#id")) and it also have many member variables.