I know little of Javascript, and I was trying to understand how JQuery manages to be both a function and an object at the same time. I was wondering how it was developed so it could be called as function ( $()
) and e as object ( $.fn()
).
Does anyone know how this works?