JavaScript
Definition
JavaScript is a programming language primarily used for dynamic scripts on websites but also runs server-side.
JavaScript (JS) is an interpreted or just-in-time compiled programming language with first-class functions. In the browser, it modifies page content via the DOM and fetches data from servers using the fetch() API. Outside the browser, it runs in runtime environments like Node.js, Deno, and Bun. MDN distinguishes the language itself from web APIs and the DOM, which belong to the browser environment.
Simply explained
JavaScript describes processes that react to clicks or perform searches, for example, and can also run on servers.
Why it matters in practice
Anyone building a website uses JavaScript to define what becomes interactive in the browser and what happens on the server.
Example from business
Possible example: A form checks inputs and shows an understandable state after submission.
Limits and pitfalls
- JavaScript is not Java. Language, browser interfaces, and document model are distinct; new language features may be supported differently depending on browser and standard version.
Origin & history
Brendan Eich developed JavaScript at Netscape; it appeared in Navigator 2.0 in 1995. Microsoft followed in 1996 with JScript. Subsequent standardization with Ecma led to ECMAScript (ECMA-262).
Use in mid-sized companies
- Possible example: A retailer adds input validation to their order form in the browser and additionally validates data on the server.
Frequently asked questions
Is JavaScript the same as Java?
No. According to MDN, the two languages differ significantly in syntax, semantics, and usage; "Java" and "JavaScript" are also trademarks of Oracle.
Does JavaScript run only in the browser?
No. It is also used server-side, for example with Node.js, Deno, and Bun.
What is the difference between JavaScript and ECMAScript?
ECMAScript is the standardized version of JavaScript, specified in ECMA-262.
Sources
- JavaScript · MDN contributors (2026): JavaScript
- JavaScript - Glossary · MDN contributors (2026): JavaScript - Glossary
Sources checked on 14.10.2026. Editorial use cases are hypothetical; no evidence of real customer results.
Editorially reviewed on: