I am trying to get the version of jQuery a page is using in an alert. It works perfect:
I use alert(jQuery.prototype.jquery)
Now my question is what is the difference between jQuery and jquery words here that are specified before and after prototype.
which one is specified by $.
The global
$andjQueryvariables just point to the same function object, they are “aliases”.jqueryis just the name of the property of the prototype object. The two names have nothing to do with each other – they are names of different properties on different objects.