jQuery vs JavaScript
People think jQuery is a language of its own, and it is not. JavaScript is the language that runs in every browser. jQuery is a library written in JavaScript. It is a set of short helpers to find and change parts of a page. Any jQuery line is JavaScript underneath.
jQuery
A JavaScript tool that makes it quick to find and change parts of a web page.
jQuery is a free JavaScript library that makes it short to find and change parts of a web page. You find elements with $ and a CSS selector, like $(".btn"). Then one short call can hide them, change them or react to clicks. It also smooths over the ways old browsers differ. Newer browsers now do most of this on their own, but many sites still use it.
JavaScript
The language every web browser runs. It makes web pages react to clicks and typing.
JavaScript is the language that runs inside every web browser. It makes pages react: menus open, forms check what you typed, and maps move when you drag them. It was made in 1995 at Netscape. Today Node.js also runs it on servers, so one language can cover a whole website. Its official standard is called ECMAScript.
In one line
- jQuery
- A JavaScript tool that makes it quick to find and change parts of a web page.
- JavaScript
- The language every web browser runs. It makes web pages react to clicks and typing.