Pergunta de entrevista da empresa iHomefinder

Explain jQuery.noConflict()

Resposta da entrevista

Sigiloso

23 de fev. de 2017

Many JavaScript libraries use $ as a function or variable name, just as jQuery does. In jQuery's case, $ is just an alias for jQuery, so all functionality is available without using $. If you need to use another JavaScript library alongside jQuery, return control of $ back to the other library with a call to $.noConflict(). Old references of $ are saved during jQuery initialization; noConflict() simply restores them.