ENES

JavaScript

The programming language that runs inside web pages and makes them interactive.

A web page made of three layers: HTML for structure, CSS for looks and JavaScript for behavior, with a button that reacts to a click

JavaScript is the programming language built into every web browser. HTML says what is on a page and CSS says how it looks; JavaScript says what it does. When a menu opens, a form warns you that the email is missing, or a map lets you drag it around without reloading, JavaScript is doing that work on your own device.

It was created in 1995 at Netscape, in a famously short time, and its official standard is called ECMAScript. Despite the name, it has nothing to do with Java; the name was a marketing choice of the era. Because every browser has to run the same JavaScript, the standard changes carefully, and old code keeps working.

Today JavaScript also runs outside the browser, on servers and in desktop and phone apps, through runtimes like Node.js. That means one language can power both the frontend and the backend of a product, which is a big reason it is among the most used languages in the world. Many teams write TypeScript, a stricter version that adds type checks and is translated into plain JavaScript before it runs.

Keep in mind

Go deeper

Related terms

More in Software