According to Are there constants in JavaScript? Javascript does not have constants.
Does jQuery?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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 thefadeIn()method recognizes. jQuery tends to just use strings like that rather than definejQuery.SLOWor something like that which might look more like a predefined constant in other languages.