Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
I am trying to make a javascript library and I was wondering how jQuery uses two names for the same function. Thats what I mean:
jQuery('#div').fadeIn(); and $('#div').fadeIn(); are the same
Thanks in advance for your answers.
var $ = jQuery
jquery is aliased to $, like
jquery
$
That's all.
Add a comment
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.
var $ = jQuery?