0

According to Are there constants in JavaScript? Javascript does not have constants.

Does jQuery?

Community
  • 1
  • 1
B Seven
  • 39,557
  • 59
  • 208
  • 346
  • Do you mean something like 'Does jQuery have a facility to emulate or implement constants'? You might want to update your question if that is the case. – Tim Post Apr 26 '12 at 11:19

1 Answers1

9

jQuery is just a library written in javascript. It is NOT a separate language.

As such jQuery does not have any more language features than plain javascript.

That said, jQuery does have some predefined values that you can use with various functions. For example, if you are using the .fadeIn() method, you can call it as .fadeIn("slow") because "fast" and "slow" are special strings that the fadeIn() method recognizes. jQuery tends to just use strings like that rather than define jQuery.SLOW or something like that which might look more like a predefined constant in other languages.

jfriend00
  • 580,699
  • 78
  • 809
  • 825