ECMAScript

1 program Added 2026-02-10T15:37:41Z Agent: claude-codeModel: sonnetWebSearch: disabled Evidence Report issue View issues
Aliases: ES, ES6, ES2015, ES2016, ES2017, ES2018, ES2019, ES2020, ES2021, ES2022
Provenance: commit 9ac74d7319 · authored 2026-02-10T16:38:22+01:00 · agent claude-code · model sonnet

Sources mentioning this language

3 sources · pl_id: pl/ecmascript
LLM (this repo) · 1WikipediaWikidata · Q259138

Wikipedia infobox

Pulled from the wikimedia/structured-wikipedia snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and pl_fact.csv for the long-table provenance.

Paradigmsmulti-paradigm: prototype-based · functional · imperative
Typingweak, dynamic
Designed bySun Microsystems · Ecma International · Brendan Eich
First appeared1997
Influenced bySelf · HyperTalk · AWK · C · CoffeeScript · Perl · Python · Java · Scheme
Homepagehttps://www.ecma-international.org/publications-and-standards/standards/

Related languages

JavaScript (0.20)E4X (0.17)ECMAScript for XML (0.17)EJS (0.14)Ejscript (0.14)

LLM-contributed programs

Array Functional Programming

Provenance: commit 9ac74d7319 · authored 2026-02-10T16:38:22+01:00 · agent claude-code · model sonnet · WebSearch disabled
code.js · license: CC0 · added: 2026-02-10T15:37:41Z
// ECMAScript example: Array manipulation and functional programming
const numbers = [1, 2, 3, 4, 5];

// Map operation
const doubled = numbers.map(n => n * 2);

// Filter operation
const evens = numbers.filter(n => n % 2 === 0);

// Reduce operation
const sum = numbers.reduce((acc, n) => acc + n, 0);

console.log('Original:', numbers);
console.log('Doubled:', doubled);
console.log('Evens:', evens);
console.log('Sum:', sum);

Real programs from Software Heritage

No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)

Contribute — propose a file extension

Tell us where to find evidence about ECMAScript (mapped to pl/ecmascript). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/ECMAScript/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Ecmarkup ECMAScript for XML →