Skip to content
BENIBIX Learn

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.

Development🌐 Web Development

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.

Example
Lucy takes over an old shop site. Its code is full of $(...) calls, so she learns enough jQuery to fix the menu.
Why it matters
You will meet it in a huge number of older sites. Knowing it helps you read and fix them.
Full entry
Development🔤 Languages

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.

Example
Lucy picks a second pair of shoes. JavaScript on the page updates the cart total at once.
Why it matters
If code runs in a web page, it is almost always JavaScript. Every web developer has to know some.
Full entry

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.