Possible Duplicate:
How can jQuery behave like an object and a function?
In jquery we can use $ as a function as well as a namespace. for example both of these use-cases are valid.
$("div").html("<b>Wow!</b> Such excitement...");
var trimmed = $.trim(someString);
How can one identifier $ act as an object as well as a function at the same time?