JavaScript (ES2015)
Analysis against ECMAScript 2015 (ECMA-262, 6th edition, June 2015): modules, classes, promises, let/const, and Map are in the standard; async functions (ES2017) are not. The family’s ES2025 page assesses the current edition.
This assessment applies the coupling account — coupling as access to a shared resource, and the coupling floor [1], [2] — and the knowledge-embodiment theorem [3]; the language is assessed against its official reference [4].
Snapshot JavaScript ES2015 — released June 2015 · lifecycle superseded (Replaced by ES2016 and later editions; engines implement the living standard.)
Family JavaScript — shelf: Web
The language’s centre of gravity is the browser or the HTTP request and response model. A shelf groups; it does not classify — the tags below carry every use, paradigm, and platform of this snapshot.
Role change — ES5 was a browser scripting language with a young server runtime; the family’s shelf follows its current role, so this snapshot records the earlier role and does not move the shelf.
Trajectory ES5 (December 2009 — strict mode, the JSON object, and accessor properties — assessed release of the browser-scripting era) · ES2015 (June 2015 — modules, promises, class syntax — assessed release) · ES2025 (25 June 2025 — iterator helpers, Promise.try, and set methods — assessed release)
Tags
Use — Application, Web front end, Web back end, Scripting
Paradigm — Object-oriented, Functional, Imperative
Platform — Browser, Node.js
Lifecycle — Superseded
Memory — Managed (GC)
Typing — Dynamic
Resources
The language’s official entry points, and the documents that name the release this page assesses. A link marked this release pins the document to JavaScript ES2015; an unmarked link is the current reference for the language.
Landing page
Specification and reference
- ECMA-262 standard (Ecma International)
- ECMAScript Language Specification (ECMA-262)
- ECMAScript 2015 language specification this release
API documentation
Tutorial
Package registry
1 Assessment
This page assesses JavaScript (ES2015) in five parts: core coupling — what the language’s own constructs force; ecosystem coupling — what the surrounding platform, tooling, and community cost; engineering readiness — whether the artifact can be reproduced, verified, observed, worked in quickly, connected to other languages, and governed openly; the profile — the unscored facts a score cannot express; and the scoring detail — the mechanism marks and the arithmetic behind every score. A ✅ bullet marks a construct that helps. A ⚠️ or ❌ bullet marks a cost; the scoring model does not price every cost named here.
Core coupling 56.3/100 · Ecosystem coupling 80.1/100 · Engineering readiness 93.0/100
1.1 Core coupling
1.1.1 Type
- ❌ No static types: the type of a value is whatever the run time finds, so every agreement is deferred to execution (T1)
- ❌ The call target is chosen from the value: a property of that name must exist on every object that arrives at the site (T3)
- ❌ No sum type: absence is
undefinedornull, and an object shape is the alternative encoding, so completeness stays a convention (T4) - ❌ No type parameter: an algorithm over several types duplicates or narrows through one universal value (T5)
- ❌ Two absence values:
nullandundefinedboth mean missing, and no signature says a value may be absent (T10) - ❌ A signature states no effects: a call may read a global, write storage, and throw, and the signature names only the return value (T12)
- ✅ One function kind:
asyncarrives only in ES2017; a generator function suspends, and its caller composes it through iteration rather than by changing kind (T13) - ❌ A native addon is an unchecked boundary: the engine’s C ABI is a hand-written declaration that nothing validates (T14)
- ⚠️ A host value may arrive later than the call: a promise composes through
.then, and the host decides when the value exists - ❌ String length and indexing are UTF-16 code-unit operations; charAt can split a surrogate pair (T15)
1.1.2 Construction
- ❌ The global object is the default home: a top-level
varis a property of the global object, and a forgotten declaration writes there (C1) - ❌ Bindings are mutable by default: nothing states that a property or a variable will not change (C2)
- ✅ Property order is specified: the ordinary-key algorithm and
Map’s insertion order pin the sequence a program prints (C5) - ❌ One value, many names: objects and arrays move by reference, so a parameter, a closure, and a property reach one buffer (C6)
1.1.3 Memory
- ✅ A collector reclaims memory: no release call exists, so a use-after-free is not expressible
- ✅ A cycle is not a leak: a mark-and-sweep collector reclaims objects that point at each other
- ⚠️ A closure holds what it captures: a listener or a timer keeps its captured objects reachable until it is released
- ⚠️ The collector decides when memory returns: a pause is the engine’s decision, and the program cannot schedule it (M2)
- ⚠️ No scope runs a release: no destructor exists, so a resource is freed in a
finallyor by a convention (M3) - ⚠️ No handle names its owner: any two references reach the same mutable object (M4)
1.1.4 Error
- ✅ A throw is a value: a failure is caught as an object at the frame that handles it (Er1)
- ❌ A failure may arrive undeclared: a thrown value needs no signature entry, and no caller is required to handle it (Er2)
- ❌ A failure can be dropped: an error-first callback may ignore its error argument, and nothing forces the decision (Er3)
- ✅ Each script and each Worker is its own boundary: an uncaught error ends that script or Worker, not the page’s other scripts (Er5)
1.1.5 Concurrency
- ❌ One event loop: a long task blocks every other callback, so a CPU-bound computation has no second core (K1)
- ❌ Shared state is the default: a global or a captured object is reachable from every callback (K2)
- ❌ Nothing detects a race: interleaving is the program’s discipline, and no tool checks it (K3)
- ❌ No scope joins a task: a callback or a timer can outlive the code that started it (K4)
- ✅ Promises are values in the standard: composition and sequencing are expressed in the language (K5)
1.1.6 Platform
- ✅ No vendor owns the language: ECMAScript is standardised by Ecma International as ECMA-262
- ✅ Independent engines implement it: V8, SpiderMonkey, and JavaScriptCore are separate implementations
- ✅ Every browser ships an engine, and Node.js runs the language outside the browser: the source is portable between hosts
1.1.7 Trade-offs (not coupling)
- Module syntax vs. loader implementations: the standard states the module form, and the loader behind it is the host’s
- Class syntax vs. the prototype: the class syntax is a clearer spelling of the same prototype chain, so a reader keeps two vocabularies for one mechanism
- New syntax vs. toolchains: a project needs a transpiler for the engines that have not shipped the edition
1.2 Ecosystem coupling
1.2.1 Performance
- ✅ A JIT compiles the hot path: the engine optimizes the code that runs, so a loop is not interpreted statement by statement for long
- ⚠️ The collector’s pauses reach the event loop: a pause delays every pending callback (R2)
- ✅ The event loop serves I/O: many pending operations are handled without a thread per operation
1.2.2 Ecosystem
- ✅ A package registry exists: npm records, fetches, and resolves a project’s dependencies
- ❌ A native addon binds to the engine’s release: the addon is built against one major and must be rebuilt for another [5] (Ec8)
1.2.3 Evolution
- ✅ The TC39 process is public: a proposal passes fixed stages before it ships
- ✅ The language is backward compatible: an edition adds syntax and keeps the meaning of what it had
- ⚠️ The syntax of the era shapes the code: module and class syntax arrive with this release, so the code written before it is functions and object literals
1.2.4 Domain
- ✅ The only native browser language: a user interface that runs in a browser is written in it
- ✅ A server runtime runs the same source: Node.js loads the language outside the browser, so a project shares one language across client and server
- ✅ Scripting and glue code: a short program automates a task or connects two programs
- ⚠️ Poor for systems work: no control of layout or release timing
1.2.5 Learning
- ✅ A gentle start: a program runs as soon as it is written, and the browser is the development environment
- ⚠️
thisfollows the call site, and coercion follows the operand: the two rules a beginner must learn are the two the language explains least
1.2.6 Syntax
- ✅ Object literals and first-class functions express a shape directly: data and behaviour are written side by side
- ⚠️ Coercion surprises survive reading:
[] + {}and{} + []differ, and the rule is memorised rather than learned
1.2.7 Testing
- ✅ Test frameworks are mature: a runner and an assertion library are standard project dependencies
- ✅ The engine’s developer tools step through the source: a breakpoint and a call stack are part of every browser
- ❌ A mistake is found on the path that runs: the compiler decides nothing, so coverage is the only evidence of safety (G3)
1.2.8 Security
- ✅ A collector removes memory bugs: a use-after-free and a buffer overflow are not expressible (Q1)
- ❌ A value from outside arrives with no declared type: keeping it away from a dangerous operation is the programmer’s check (Q2)
- ❌ Text becomes code as an ordinary operation:
evalparses a string at run time, so a data path can become a control path (Q3) - ❌ Every number is an IEEE-754 double: integers above 2^53 change value in silence, bitwise operators coerce to 32 bits (Q4)
1.2.9 Delivery targets
What ships from a producer to a consumer, and whether the interface across a release boundary is promised. Ec8 is present when one compiled target crosses with no promise.
| Target | Ships as | Crosses a producer boundary | Cross-release promise |
|---|---|---|---|
| npm package — JavaScript source | source | no | The engine parses the source the package ships |
| native addon — engine ABI | compiled | yes | no — An addon is built against one engine major and must be rebuilt for the next [5] [5] |
1.3 Engineering readiness
1.3.1 Reproducibility
- ✅ The lock file pins the graph: the package manager records resolved versions and verifies them on install (Y2)
- ⚠️ The interpreter is not pinned by the project: the language runtime version is left to a version manager or an image (Y14)
1.3.2 Supply chain
- ✅ The registry records signatures: a published package carries a verifiable statement of the publisher (Y3)
- ❌ The registry is a flat name space: a name is a first claim, and a dependency can be redirected without a change in the consumer’s source (Y4)
1.3.3 Observability
- ✅ The instrumentation standard publishes an implementation: traces and metrics have a stable expressed form (Y5)
1.3.4 Feedback
- ✅ The edit is the run: no build step sits between a change and its effect (Y7)
- ✅ An incremental analyser answers as the code is typed: the editor resolves types and references without a full build (Y8)
1.3.5 Interop
- ✅ A general foreign-function interface exists: a native addon calls the platform’s C ABI in process (Y9)
1.3.6 Governance
- ✅ A published conformance suite exists: Test262 runs against every engine, so the language’s meaning is testable outside one implementation (Y17)
- ✅ A published parser exists: the engine’s parser and the compiler API expose the syntax (Y19)
1.4 Profile
Unscored, and kept separate from every score on purpose. The profile records what a mechanism price cannot express: what a running program costs, how well a coding model and an agent work in the language, and whether a safety-critical path exists.
1.4.1 Energy and cost
What this axis asks: what does a running program cost in energy and time?
1.4.2 AI and agent readiness
What this axis asks: how well does a coding model and an agent work in this language?
1.4.3 Safety certification
What this axis asks: is there a certified or standards-qualified path to a safety-critical system?
- ⚠️ No certified or standards-qualified path for safety-critical systems.
1.5 Scoring detail
1.5.1 Core coupling Dimensions
| Dimension | Mechanism | Description | Imposed by | Present | Weight |
|---|---|---|---|---|---|
| Type | T1 |
dynamic no static check | language | ✅ | −15 |
T2 |
weak static | language | — | 0 | |
T3 |
dynamic/duck dispatch | language | ✅ | −8 | |
T4 |
no sum types | language | ✅ | −4 | |
T5 |
no generics | language | ✅ | −4 | |
T6 |
no namespaces | language | — | 0 | |
T7 |
type erasure/reflection | language | — | 0 | |
T8 |
operator overloading | language | — | 0 | |
T9 |
inheritance required for polymorphism | language | — | 0 | |
T10 |
no null-safety | language | ✅ | −8 | |
T11 |
no module boundary | language | — | 0 | |
T12 |
no effect tracking | language | ✅ | −8 | |
T13 |
async/sync colouring | language | — | 0 | |
T14 |
unchecked foreign boundary | language | ✅ | −4 | |
T15 |
chars are encoding units | language | ✅ | −8 | |
| Type cost | −16.9 (−59) | ||||
| Construction | C1 |
global mutable state by default | language | ✅ | −15 |
C2 |
no immutability by default | language | ✅ | −4 | |
C3 |
constructors coupled to allocation | language | — | 0 | |
C4 |
no constructor/validation | language | — | 0 | |
C5 |
unpinned collection order | language | — | 0 | |
C6 |
aliasing by default | language | ✅ | −8 | |
C7 |
undeclared control transfer | language | — | 0 | |
C8 |
no source-visible init order | language | — | 0 | |
| Construction cost | −7.7 (−27) | ||||
| Memory | M1 |
manual deallocation | runtime | — | 0 |
M2 |
GC non-deterministic pauses | runtime | ✅ | −8 | |
M3 |
no RAII | language | ✅ | −4 | |
M4 |
no ownership model | language | ✅ | −8 | |
M5 |
uninitialized reads | language | — | 0 | |
M6 |
unchecked reinterpretation | language | — | 0 | |
Er6 |
uncatchable runtime fault | language | — | 0 | |
M7 |
reference cycles leak | runtime | — | 0 | |
| Memory cost | −5.7 (−20) | ||||
| Error | Er1 |
no structured path | language | — | 0 |
Er2 |
unchecked exceptions only | language | ✅ | −8 | |
Er3 |
errors ignored/non-exhaustive | language | ✅ | −4 | |
Er4 |
no composable result type | language | — | 0 | |
Er5 |
no isolation unit for a fault | runtime | — | 0 | |
| Error cost | −3.4 (−12) | ||||
| Concurrency | K1 |
GIL/no parallel | runtime | ✅ | −15 |
K2 |
shared mutable state default | language | ✅ | −8 | |
K3 |
manual sync no race detection | runtime | ✅ | −8 | |
K4 |
no structured concurrency | language | ✅ | −4 | |
K5 |
no primitives | language | — | 0 | |
K6 |
thread-per-task cost | runtime | — | 0 | |
| Concurrency cost | −10.0 (−35) | ||||
| Platform | P1 |
cannot function outside one vendor/domain | context | — | 0 |
P2 |
single-vendor but other uses | context | — | 0 | |
P3 |
legacy/discontinued platform | context | — | 0 | |
P4 |
poor domain fit | context | — | 0 | |
| Platform cost | 0 |
Core coupling score: 56.3/100 — 153 of the 350 inventory points are present, so the axis cost is 100 × 153 ÷ 350 = 43.7 and the score is 100 − 43.7. Each dimension’s cost above is its share of the same denominator, and the raw weight sum follows in parentheses.
1.5.2 Ecosystem coupling Dimensions
| Dimension | Mechanism | Description | Imposed by | Present | Weight |
|---|---|---|---|---|---|
| Performance | R1 |
interpreted no AOT/JIT | runtime | — | 0 |
R2 |
GC pauses | runtime | ✅ | −8 | |
R3 |
JIT warmup | runtime | — | 0 | |
| Performance cost | −3.1 (−8) | ||||
| Ecosystem | Ec1 |
no package manager | context | — | 0 |
Ec2 |
fragmented tooling | context | — | 0 | |
Ec3 |
small/niche/discontinued | context | — | 0 | |
Ec4 |
proprietary | context | — | 0 | |
Ec5 |
platform-locked tooling | context | — | 0 | |
Ec6 |
monoculture | context | — | 0 | |
Ec7 |
legacy burden | context | — | 0 | |
Ec8 |
unpromised binary boundary | context | ✅ | −8 | |
Ec9 |
unpromised data boundary | context | — | 0 | |
| Ecosystem cost | −3.1 (−8) | ||||
| Evolution | V1 |
breaking changes | language | — | 0 |
V2 |
frozen | context | — | 0 | |
V3 |
discontinued | context | — | 0 | |
V4 |
glacial standards | context | — | 0 | |
V5 |
silent default drift | runtime | — | 0 | |
V7 |
build-variant state space | context | — | 0 | |
| Evolution cost | 0 | ||||
| Domain | D1 |
domain/vendor lock-in | context | — | 0 |
D3 |
framework forces architecture | context | — | 0 | |
| Domain cost | 0 | ||||
| Learning | L1 |
steep | context | — | 0 |
L2 |
large surface/multi-paradigm | context | — | 0 | |
L3 |
sparse docs | context | — | 0 | |
| Learning cost | 0 | ||||
| Syntax | S1 |
verbose | language | — | 0 |
S2 |
inconsistent | language | — | 0 | |
S3 |
punctuation-heavy | language | — | 0 | |
| Syntax cost | 0 | ||||
| Testing | G1 |
weak tooling | context | — | 0 |
G2 |
poor debugging | context | — | 0 | |
G3 |
runtime-only errors | context | ✅ | −4 | |
G4 |
no published monotonic clock | runtime | — | 0 | |
| Testing cost | −1.6 (−4) | ||||
| Security | Q1 |
memory-unsafe | language | — | 0 |
Q2 |
dynamic/weak typing risk | language | ✅ | −8 | |
Q3 |
known vulnerability/injection | context | ✅ | −8 | |
Q4 |
silent integer overflow | language | ✅ | −15 | |
| Security cost | −12.1 (−31) |
Ecosystem coupling score: 80.1/100 — 51 of the 256 inventory points are present, so the axis cost is 100 × 51 ÷ 256 = 19.9 and the score is 100 − 19.9. Each dimension’s cost above is its share of the same denominator, and the raw weight sum follows in parentheses.
1.5.3 Engineering readiness Dimensions
| Dimension | Mechanism | Description | Imposed by | Present | Weight |
|---|---|---|---|---|---|
| Reproducibility | Y1 |
build not reproducible | context | — | 0 |
Y2 |
dependencies not pinned | context | — | 0 | |
Y14 |
no toolchain version pin | context | ✅ | −8 | |
Y18 |
no machine-read project contract | context | — | 0 | |
| Reproducibility cost | −4.7 (−8) | ||||
| Supply chain | Y3 |
no signed provenance | context | — | 0 |
Y4 |
registry without namespacing | context | ✅ | −4 | |
Y16 |
no advisory feed | context | — | 0 | |
| Supply chain cost | −2.3 (−4) | ||||
| Observability | Y5 |
no stable tracing standard | context | — | 0 |
Y6 |
no structured logging | context | — | 0 | |
Y15 |
no post-mortem diagnostics | runtime | — | 0 | |
| Observability cost | 0 | ||||
| Feedback | Y7 |
slow build | context | — | 0 |
Y8 |
no fast in-editor analysis | context | — | 0 | |
Y13 |
no bundled debugger | context | — | 0 | |
| Feedback cost | 0 | ||||
| Interop | Y9 |
no foreign-function interface | language | — | 0 |
Y10 |
no portable target | context | — | 0 | |
| Interop cost | 0 | ||||
| Governance | Y11 |
single-vendor governance | context | — | 0 |
Y12 |
closed specification | context | — | 0 | |
Y17 |
no conformance mechanism | context | — | 0 | |
Y19 |
no published parser | context | — | 0 | |
| Governance cost | 0 |
Engineering readiness score: 93.0/100 — 12 of the 171 inventory points are present, so the axis cost is 100 × 12 ÷ 171 = 7.0 and the score is 100 − 7.0. Each dimension’s cost above is its share of the same denominator, and the raw weight sum follows in parentheses.
Verdict: ES2015 is the edition that turned the language into an application platform. Modules, classes, let/const, promises, Map, and a specified property order arrive together. A module boundary exists at the file level, a specified iteration order replaces the implementation’s, and a promise puts asynchronous composition in the language. The type system is still absent, the call target is still chosen at run time, absence is still null or undefined, and a native addon is still an unchecked boundary. Main strength: the module and class syntax a large application can be built from. Main weakness: nothing in the standard checks a value’s type, and the asynchronous function kind that arrives in ES2017 is not yet present.
The formal development. The definitions, theorems, and proofs behind this page are published in:
- On the Nature of Coupling: All Coupling as Shared Resource Access — Zenodo, 2026 — doi:10.5281/zenodo.21925122
- Coupling as a Consequence of Cohesion: Decomposition, the Coupling Floor, and Domain-Imposed Coupling — Zenodo, 2026 — doi:10.5281/zenodo.21925201
- On the Nature of Cohesion: Cohesion as Correctness Relative to a Partitioning Rule — Zenodo, 2026 — doi:10.5281/zenodo.21703193