Skip to content
BENIBIX Learn

JavaScript

Development🔤 LanguagesPopular Languages

Also known as JS, ECMAScript

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

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.

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.

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 code

javascript
console.log("Hello, world!");
// Hello, world!
One line shows a message in the browser's console.

Common mistake

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

Key takeaways

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

Compare

Learn it properly