Hey.
Question by jQuery.
What
window.jQuery()object is obtained at the output of thewindow.jQuery()function and where is this object "attached" to the BOM?Why is the new keyword not used? As far as I know, only the constructor function can create an object. And
window.jQuery()does just that - creates an object. In the Flanagan book, it is written about this that "jQuery () is a factory function, not a constructor: it returns a newly created object, but it is used without the keyword new." What does the "factory" function mean? The first time I see such a term.