1

I found a jquery program. Every code-line is like this -> jQuery("....). Example:

     jQuery(function(ready){....

Why is it done like this?

user2500308
  • 69
  • 10
  • 1
    Are you asking why it's `jQuery(...)` instead of `$(...)`? They're synonyms. – Barmar Mar 29 '18 at 21:31
  • 1
    `$` is just a shortcut, but other libraries use it as well, so some programmers prefer to use the long name to avoid conflicts. – Barmar Mar 29 '18 at 21:32
  • Or if you're asking about why the argument is a function, see https://stackoverflow.com/questions/4384651/are-function-and-document-readyfunction-the-same – Barmar Mar 29 '18 at 21:35

0 Answers0