The $() function is an alias of jQuery() function, at ﬁrst it looks weird and makes jQuery code cryptic, but once you get used to it, you will love it’s brevity. $() function is used to wrap any object into jQuery object, which then allows you to call various method deﬁned jQuery object. You can even pass a selector string to $()function, and it will return jQuery object containing an array of all matched DOM elements. I have seen this jQuery asked several times, despite it’s quite basic, it is used to diﬀerentiate between developer who knows jQuery or not.
%d bloggers like this: