According to Are there constants in JavaScript? Javascript does not have constants.
Does jQuery?
According to Are there constants in JavaScript? Javascript does not have constants.
Does jQuery?
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.