# JavaScript

> The language every web browser runs. It makes web pages react to clicks and typing.

**Field:** Software Development  
**Category:** Languages  
**Also known as:** JS, ECMAScript

## Think of it like

Think of it like the wiring in a toy. The page is the toy, and JavaScript makes the buttons light up and move.

## Definition

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.

## Example code

```javascript
console.log("Hello, world!");
// Hello, world!
```

One line shows a message in the browser's console.

## Why it matters

If code runs in a web page, it is almost always JavaScript. Every web developer has to know some.

## Common mistake

Thinking JavaScript and Java are related. The names are alike; the languages are not.

## Three principles

- **Runs in the browser.** No install needed to run it.
- **Also on servers.** Node.js runs it outside the browser.
- **Loose with types.** "5" + 5 gives "55", not 10.

## Related terms

- [TypeScript](https://learn.benibix.com/term/development/typescript)
- [Java](https://learn.benibix.com/term/development/java)
- [Interpreted Language](https://learn.benibix.com/term/development/interpreted-language)
- [High-Level Language](https://learn.benibix.com/term/development/high-level-language)
- [jQuery](https://learn.benibix.com/term/development/jquery)

## Told apart from

- [JavaScript vs Java](https://learn.benibix.com/compare/javascript-vs-java): They share half a name and nothing else. JavaScript runs in the browser; Java runs on its own JVM, often on servers.
- [JavaScript vs TypeScript](https://learn.benibix.com/compare/javascript-vs-typescript): TypeScript is JavaScript with types added. The types are checked before the code runs, then they are taken away.
- [jQuery vs JavaScript](https://learn.benibix.com/compare/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.

## Taught in

- [JavaScript and TypeScript](https://learn.benibix.com/learn/development-languages/javascript-and-typescript): Programming Languages, 5/12
- [JavaScript and the DOM](https://learn.benibix.com/learn/development-web/javascript-and-the-dom): HTML, CSS and JS, 12/14

---

Source: https://learn.benibix.com/term/development/javascript
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
