TechnologyProgramming language

JavaScript

Also known as: JS, ECMAScript

High-level programming language of the web, created at Netscape in 1995, that runs in every major browser and on servers through runtimes like Node.js.

JavaScript is a dynamic, high-level programming language and one of the core technologies of the web, alongside HTML and CSS. Every major web browser includes a JavaScript engine, which lets pages respond to users, update content without reloading and run full applications by manipulating the Document Object Model. The language is multi-paradigm, supporting event-driven, functional and prototype-based object-oriented styles, and it is standardized as ECMAScript by the Ecma International committee TC39. Despite the name, it is unrelated to Java.

Brendan Eich created the language at Netscape in 1995, famously producing the first version in about ten days. It was called Mocha and LiveScript before being renamed JavaScript in a marketing arrangement with Sun Microsystems. Ecma published the first ECMAScript standard in 1997. A major revision in 2015, known as ES2015 or ES6, added classes, modules, promises and arrow functions, and the standard has been updated annually since. Fast just-in-time compilers such as Google's V8, introduced in 2008, made demanding applications practical.

Runtimes such as Node.js brought JavaScript to servers and command-line tools, making it possible to write entire applications in one language. Its ecosystem is vast but fragile in places, with deep dependency trees that have enabled supply chain attacks. Loose typing and historical quirks led to tools like TypeScript, while its event loop model shapes how asynchronous code is written. JavaScript has consistently ranked among the most widely used languages in developer surveys.

Key points

  • JavaScript runs in every major web browser and is standardized as ECMAScript.
  • Brendan Eich created the first version at Netscape in 1995.
  • The 2015 ECMAScript revision added classes, modules and promises.
  • Node.js and similar runtimes run JavaScript outside the browser.

Related entries

Person

Brendan Eich

Programming

American programmer who created the JavaScript language at Netscape in 1995 and later co-founded both Mozilla and the Brave browser company.

Technology

TypeScript

Programming

Programming language developed by Microsoft that adds optional static types to JavaScript and compiles to plain JavaScript for any runtime.

Technology

Node.js

Programming

Open-source JavaScript runtime built on Google's V8 engine that runs JavaScript outside the browser using an event-driven, non-blocking model.

Glossary term

Programming interface that represents a web page as a tree of objects, letting scripts read and change its content, structure and style.

Glossary term

Event Loop

Programming

Programming construct that repeatedly waits for events, such as user input or completed network requests, and dispatches each to its handler.

Technology

WebAssembly

Programming

Portable binary instruction format that lets code compiled from languages like C, C++ and Rust run safely at near-native speed in web browsers.

Technology

MDN Web Docs

Programming

Free documentation resource maintained by Mozilla and contributors that covers HTML, CSS, JavaScript and web APIs for developers.

Technology

React

Programming

Open-source JavaScript library from Meta for building user interfaces out of reusable components that update efficiently when data changes.

Featured in guides

Referenced by

Other entries that discuss or point to JavaScript.