understanding $ vs. jQuery in iife instead of $

Other JavaScript frameworks may also use $ as a shortcut. To guarantee that $ is jQuery inside your function, pass jQuery and not $ at the end. This type of defining a function or “code area” is to take sure that $ really is jQuery when mixing frameworks.

Leave a Comment