0

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.

1
  • 2
    as in var $ = jQuery ? Commented Jun 11, 2014 at 0:02

1 Answer 1

1

jquery is aliased to $, like

var $ = jQuery

That's all.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.