0

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

Does jQuery?

1
  • 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. Commented Apr 26, 2012 at 11:19

1 Answer 1

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.

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.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.