What is the difference between jQuery and JavaScript?

JavaScriptjQuery
The programming languageA library written in JavaScript
Works without any extra fileNeeds the jQuery file to be loaded
Longer code for DOM work (in older code)Short code for DOM, events and Ajax
document.querySelectorAll('.a')$('.a')

You cannot use jQuery without knowing the basics of JavaScript, because jQuery is JavaScript. See jQuery vs Vanilla JavaScript.


Learn more about the similar topics:
Tutorials
No Content Found.
Exercises & Assignments
No Content Found.
Interview Questions & Answers
No Content Found.