Development

JavaScript

AI-assisted editorial review:

JavaScript is a dynamic programming language best known as the scripting language of web pages. It adds behavior to a site, such as responding to button clicks, checking form input and updating data without reloading the page. It also runs outside the browser, for example on servers through Node.js.[1] W3Techs reported JavaScript on about 98.9% of websites as a client-side language in October 2026,[2] and it was the most used language among respondents to Stack Overflow's 2025 developer survey (66%).[3]

What does JavaScript mean in simple terms?

Early web pages mostly showed text and images, like a printed page. JavaScript is what makes a page react: a button changes color when you press it, or suggestions appear while you type in a search box. It was created at Netscape in 1995 as a quick ten-day prototype,[4] and today almost every website uses it.[2] The same language now also runs servers, desktop apps and the chat screens of AI services, so it is often the first programming language people meet when they build something for the web.[1][10]

How can JavaScript be explained with an analogy?

If a web page is a stage, HTML is the set, CSS is the lighting and costumes, and JavaScript is the script that tells the actors when and how to move.

Where is JavaScript used?

Case 1

PayPal — One language for browser and server

In 2013 PayPal reported moving its web applications from Java to JavaScript and Node.js so that the same engineers could build both the browser side and the server side.[7] For its account overview page, PayPal built a Node.js version in parallel with a Java version. The Node.js version was built almost twice as fast with fewer people, with 33% fewer lines of code and 40% fewer files. PayPal noted that these figures came from its own frameworks and applications.[7]
Result: Double the requests per second and a 35% lower average response time than the Java version in PayPal's test (2013).[7]

Case 2

Search autocomplete — Reacting to every keystroke

An autocomplete box is a typical JavaScript task in the browser: it watches what you type, asks the server for predictions and updates the list on screen without reloading the page.[1] Google says its autocomplete predictions change as each new character is entered, and that on average the feature reduces typing by about 25%.[8]
Result: About 25% less typing on average with Google autocomplete (Google, 2018).[8]

Case 3

Desktop apps — Web code on your computer

Electron lets developers build desktop apps for macOS, Windows and Linux with JavaScript, HTML and CSS, by bundling Chromium and Node.js.[10] Electron lists Slack, Visual Studio Code, Figma and the ChatGPT and Claude desktop apps among the apps that use it.[10] A company can therefore reuse web skills and much of its web code for a desktop product.
Result: Widely used desktop apps, including AI chat apps, are built on Electron (Electron, 2026).[10]

Five areas where JavaScript is used

  1. Front-end frameworks: Tools such as React and Vue sit on top of JavaScript and let teams build screens from reusable components. In Stack Overflow's 2025 survey, Node.js (48.7%) and React (44.7%) were the most used web frameworks and technologies.[3]
  2. Server runtimes: Node.js, and newer runtimes such as Deno and Bun, run JavaScript outside the browser.[1][11] PayPal's move to Node.js is one documented example.[7]
  3. Desktop apps: Electron packages JavaScript apps for macOS, Windows and Linux; Slack and VS Code are examples.[10]
  4. AI interfaces: Chat services often stream answers piece by piece. OpenAI's API, for example, can send output as server-sent events so an app can start showing the beginning of an answer while the rest is still being generated.[9] Code in the browser then adds each piece to the screen.
  5. A practical entry point: Every major browser can run JavaScript without installing anything, so it is an easy language for a first prototype.[1]

Try it today

  1. Open your browser's developer tools on any web page and look at the Console tab; this is where JavaScript runs and reports errors.
  2. When you plan a web feature, list which parts need JavaScript (instant feedback, live updates) and which can stay as plain HTML.
  3. When an AI coding tool writes JavaScript for you, read it and test it in a safe copy before using it on a live site.

Limits and direction

JavaScript is loosely typed, so some mistakes only show up when the code runs. TypeScript adds types to JavaScript and converts back to plain JavaScript, which helps catch errors earlier in the editor.[11] In August 2025 TypeScript became the language with the most monthly contributors on GitHub, overtaking both Python and JavaScript, and GitHub links this partly to AI-assisted coding.[12] The language itself keeps evolving through yearly editions of the ECMAScript standard; the 17th edition (ECMAScript 2026) was published in June 2026.[5]

How has JavaScript evolved?

1995
Created at Netscape
Brendan Eich created the language at Netscape in a ten-day prototype, and it first shipped in the Netscape browser.[4]
1997-06
First standard
Ecma International published the first edition of ECMA-262, the ECMAScript standard behind JavaScript.[5]
2009
Node.js appears
Ryan Dahl tagged v0.0.1, the first release of Node.js, a runtime that runs JavaScript outside the browser.[6]
2015-06
ECMAScript 2015 (ES6)
The 6th edition of ECMA-262 was published, a major update that modern JavaScript builds on.[5]
2025-08
TypeScript tops GitHub
TypeScript, a typed extension of JavaScript, became the language with the most monthly contributors on GitHub.[12]
2026-06
ECMAScript 2026
Ecma published the 17th edition of ECMA-262, the latest yearly update of the standard.[5]

Which concepts are related to JavaScript?

  • Extension language
    TypeScriptAdds type syntax to JavaScript and compiles back to plain JavaScript.[11]
  • Framework
    Next.jsA full-stack web framework built on JavaScript and React.
  • Runtime
    Node.jsRuns JavaScript on servers, outside the browser.[1]
  • Mobile apps
    React NativeA way to build iOS and Android apps with JavaScript and React.

JavaScript vs Python

ComparisonJavaScriptPython
Main useWeb pages, servers, desktop and mobile apps[1][10]Data analysis, AI models, automation
Where it runsBuilt into every major browser; Node.js on servers[1]Runs through a Python interpreter, locally or in a hosted environment
Role in AI productsUser interfaces and API calls, e.g. streamed chat answers[9]Model training, data work and back-end AI logic
Easy starting pointBrowser console, no install needed[1]Notebook tools such as Jupyter or Google Colab

Which sources explain JavaScript?

  1. MDN Web Docs (Mozilla) — JavaScript — https://developer.mozilla.org/en-US/docs/Web/JavaScript
  2. W3Techs — Usage statistics of JavaScript as client-side programming language on websites (October 2026) — https://w3techs.com/technologies/details/cp-javascript
  3. Stack Overflow — 2025 Developer Survey: Technology — https://survey.stackoverflow.co/2025/technology
  4. Allen Wirfs-Brock, Brendan Eich — JavaScript: The First 20 Years (Proc. ACM Program. Lang., HOPL IV, 2020) — https://zenodo.org/records/4960086
  5. Ecma International — ECMA-262 ECMAScript language specification (17th edition, June 2026, with archive of editions) — https://ecma-international.org/publications-and-standards/standards/ecma-262/
  6. Node.js (GitHub) — Release v0.0.1 — https://github.com/nodejs/node/releases/tag/v0.0.1
  7. PayPal Tech Blog — Node.js at PayPal (2013-11-22) — https://medium.com/paypal-tech/node-js-at-paypal-4e2d1d08ce4f
  8. Google — How Google autocomplete works in Search (2018-04-20) — https://blog.google/products/search/how-google-autocomplete-works-search/
  9. OpenAI — Streaming API responses — https://developers.openai.com/api/docs/guides/streaming-responses
  10. Electron (OpenJS Foundation) — Build cross-platform desktop apps with JavaScript, HTML, and CSS — https://www.electronjs.org/
  11. TypeScript (Microsoft) — JavaScript with syntax for types — https://www.typescriptlang.org/
  12. GitHub Blog — Octoverse: A new developer joins GitHub every second as AI leads TypeScript to #1 (2025-10-28) — https://github.blog/news-insights/octoverse/octoverse-a-new-developer-joins-github-every-second-as-ai-leads-typescript-to-1/