Vezi pagina în română

IT Glossary

What is JavaScript (JS), the language of the browser?

JavaScript is the programming language every browser executes: it makes pages react to the visitor and, through Node.js, it runs on servers too.

6
sections
6
questions answered

JavaScript (JS for short) is the programming language that every browser runs: its code, loaded with the page, reacts to clicks, typing and scrolling and changes the page content without a reload, and through Node.js it runs on servers too. The name of the standard is ECMAScript, published by Ecma International as ECMA-262; the current edition is the 17th, ECMAScript 2026, from June 2026, and a new edition has appeared every June since 2015. Verified on 18 November 2026 at ecma-international.org.

On a web page, HTML gives the structure, CSS the appearance and JavaScript the behaviour: menus that open, forms validated on the spot, a shopping cart that updates, maps. JavaScript ranks first among the languages developers use, for the 12th year in a row, in the Stack Overflow Developer Survey 2026 (62.0% of respondents), although on GitHub TypeScript, which is JavaScript with types, has overtaken it since August 2025 (GitHub Octoverse 2025).

Why it matters for your business

Runs in every browser, no installation

Visitors install nothing: Chrome, Firefox, Safari and Edge each ship a built-in JavaScript engine, so the same code works on phones and computers.

One language for interface and server

With Node.js the same language writes both the browser side and the server; data travels as JSON, a format derived from JavaScript.

A public standard, updated yearly

ECMA-262 is public and a new edition appears every June, so the language develops under written rules, not at the whim of a single vendor.

How JavaScript runs: browser, engine, server

The browser downloads the script, either from a <script> tag in the HTML page or from a .js file, and runs it with its own JavaScript engine: V8 (Google) in Chrome, SpiderMonkey (Mozilla) in Firefox, JavaScriptCore (WebKit) in Safari. V8 also runs inside Node.js, an asynchronous, event-driven JavaScript runtime built for network applications (nodejs.org).

A minimal example, one button and one script. First the page contains: <button>Send</button> <p id='message'></p>

Then the script: <script> document.querySelector('button').addEventListener('click', () => { document.getElementById('message').textContent = 'Thank you, we received your request.'; }); </script>

On click, the script writes the text into the page without requesting another document from the server. That is the “interactivity” in website and web application quotes.

JavaScript vs Java (and TypeScript)

The two are not technically related. Netscape and Sun announced JavaScript on 4 December 1995 as a scripting language, a complement to Java, in the beta of Netscape Navigator 2.0 (Netscape press release of 04.12.1995); that is where the name comes from. The official java.com site states that JavaScript is not part of the Java platform.

Java is a compiled language that runs in the Java virtual machine and is common in enterprise applications and on Android. JavaScript runs in the browser and in Node.js. TypeScript is JavaScript with syntax for types (typescriptlang.org) and is still converted to JavaScript before it runs; the full comparison is on the TypeScript term page.

Want an estimate for your project?

Message us on WhatsApp. We reply the same working day, and the first 30-minute call is free.

Book a free call

ECMAScript: the standard and its editions

The language is defined by the ECMA-262 standard, maintained by the TC39 technical committee at Ecma International. The first edition appeared in June 1997, and a 4th edition was never published. The 6th edition, from June 2015 (known as ES6 or ES2015), started the annual series: one edition every June. Today the 17th edition, ECMAScript 2026, is in force, and the draft of the next one is public at tc39.es/ecma262.

JSON, the format applications use to exchange data, is derived from JavaScript object literals (RFC 8259). If a quote asks for “ES6” or “ES2015+”, it means the language's modern syntax, not a separate technology.

JavaScript, site speed and Google

JavaScript has a cost on mobile. According to the HTTP Archive Web Almanac 2024, the median mobile page loads 558 KB of JavaScript in 22 requests, and 206 KB (44%) is unused at load; more JavaScript means more processing time on the phone, so weaker Core Web Vitals scores.

Google processes JavaScript pages in three phases, crawling, rendering and indexing, and still recommends server-side rendering or pre-rendering, because not all bots run JavaScript (Google Search Central, JavaScript SEO basics). The safe practice is progressive enhancement: essential content and navigation exist in the HTML, and JavaScript adds the behaviour.

Frequently asked questions

What does JavaScript mean?

JavaScript, JS for short, is the name of the programming language of the web: the one every browser runs to make pages interactive. Its standard is called ECMAScript, and the current edition is ECMAScript 2026, the 17th, published by Ecma International in June 2026.

Are JavaScript and Java the same thing?

No, they are different languages with different uses. The name comes from the Netscape and Sun announcement of 4 December 1995, which presented JavaScript as a complement to Java. Java appears in enterprise applications and Android, JavaScript on the web. In a contract or CV, the difference matters.

Can a website work without JavaScript?

Static content, yes; modern interactivity, no. Good practice is progressive enhancement: text and basic navigation exist in the HTML, and JavaScript enriches them where it runs. That way Google and bots that do not run JavaScript see the content, and the page stays useful on weak connections.

What is ECMAScript and which version is current?

ECMAScript is the standard (ECMA-262) that the JavaScript engines in browsers implement. The current edition is the 17th, ECMAScript 2026, from June 2026. Since 2015 a new edition has appeared every June, and the draft of the next one is public at tc39.es/ecma262.

Where do you write and where does JavaScript code run?

It is written in any text editor, in a .js file or between the script tags of an HTML page. It runs in the browser, where the console in the developer tools (the F12 key) allows quick tests, and on the server through Node.js, without a browser.

Why does a site with a lot of JavaScript load slowly on a phone?

The phone downloads, parses and executes every script on its own processor, which is weaker than a computer's. The median mobile page loads 558 KB of JavaScript, 44% of it unused at load (Web Almanac 2024). The fix: fewer third-party scripts, deferred loading, code split per page.