It depends on the library. Libraries such as YUI or jQuery use a strict namespace system, which means they can work together successfully. For instance. Module template http://www.yuiblog.com/blog/2007/06/12/module-pattern/
However, libraries using a prototype model, such as MooTools or Prototype, are much more complex. They use prototype inheritance to modify their own objects, such as Array, Number, and String.
Although it offers some very elegant solutions and allows library developers to βfixβ some of their inherent JavaScript problems, this means that they rarely play beautifully together.
In addition, since libraries may seem to be impeccable until a particular medium is used in some obscure way, you can get an intermittent and very complicated way to solve errors.
source share