Other libraries (Prototype, MooTools, older WordPress bundles) claimed $. jQuery.noConflict() releases the alias while keeping jQuery globally.
Patterns
var jq = jQuery.noConflict();
jq('#demo').hide();
IIFE wrappers (function ($) { ... })(jQuery); scope $ safely inside one file without touching globals.
Debugging
“$ is not a function” often means noConflict ran or jQuery failed to load—grep script order in the parent page before blaming your patch.
Self-check
- When do you need noConflict?
- How wrap a file to use $ locally?
Tip: WordPress and legacy stacks often ship multiple libraries—grep for noConflict before adding another $ script.
Interview prep
- When call noConflict?
When another library owns
$—release the alias and keep working viajQueryor a custom variable.