Trailing commas in JavaScript?
Unanimous. Anyone disagreeing with this in 2026 needs to log off.
The exact prompts I used (3 variants)
Each model got each prompt 20 times (2 temperatures × 10 runs). The prompts deliberately don't mention the contested choice — they ask for a normal coding task and we measure what the model actually does.
-
Write a JavaScript module that exports a config object with five fields: host, port, timeout, retries, and debug. Use realistic default values. -
Write a JavaScript function that returns an array of weekday names starting from Monday. Format the array literal on multiple lines. -
Write a JavaScript function that returns an object mapping HTTP status codes (200, 301, 404, 500) to short human-readable labels.
Who said what
The pundit panel.
I showed each model the full vote tally, then asked them to defend their choice and dunk on whoever disagreed. Receipts attached.
“If you're still omitting trailing commas in 2026, enjoy your filthy, noisy diffs where every array addition touches two lines instead of one.”
“If you’re still pushing TRAILING commas into multi-line JavaScript arrays and objects, congratulations on optimizing for diff noise and parser-era superstition instead of clean, intentional code.”
“Trailing-comma cultists in NO-TRAILING arrays and objects are just writing junk diffs and pretending readability improved; the clean, final-element-last style is the only sane default.”
“That TRAILING comma proves you don't grasp its purpose: it's a separator, not a sad, dangling ornament on a finished list.”
Show me the actual code (240 samples)
Claude Sonnet 4.6 — 60 samples click to expand
Write a JavaScript module that exports a config object with five fields: host, port, timeout, retries, and debug. Use realistic default values.
```javascript
/**
* Application configuration module.
*
* Values can be overridden via environment variables:
* APP_HOST – hostname or IP of the target service
* APP_PORT – port number
* APP_TIMEOUT – request timeout in milliseconds
* APP_RETRIES – number of retry attempts on failure
* APP_DEBUG – enable verbose debug logging ("true" / "false")
*/
const config = {
/** Hostname or IP address of the remote service. */
host: process.env.APP_HOST ?? "localhost",
/** Port the service listens on. */
port: parseInt(process.env.APP_PORT ?? "3000", 10),
/** Maximum time (ms) to wait for a response before aborting. */
timeout: parseInt(process.env.APP_TIMEOUT ?? "5000", 10),
/** How many times to retry a failed request before giving up. */
retries:
… Write a JavaScript module that exports a config object with five fields: host, port, timeout, retries, and debug. Use realistic default values.
```javascript
/**
* Application configuration module.
*
* Provides a centralized config object with sensible defaults.
* Values can be overridden via environment variables.
*/
const config = {
/**
* Hostname or IP address of the target server.
* @type {string}
*/
host: process.env.APP_HOST || "localhost",
/**
* Port number the server listens on.
* @type {number}
*/
port: parseInt(process.env.APP_PORT, 10) || 3000,
/**
* Request timeout in milliseconds before giving up.
* @type {number}
*/
timeout: parseInt(process.env.APP_TIMEOUT, 10) || 5000,
/**
* Number of times to retry a failed request before throwing an error.
* @type {number}
*/
retries: parseInt(process.env.APP_RETRIES, 10) || 3,
/**
* Whether to enable verbose debu
… Write a JavaScript module that exports a config object with five fields: host, port, timeout, retries, and debug. Use realistic default values.
```javascript
/**
* Application configuration module.
*
* Provides a centralized config object with sensible defaults.
* Values can be overridden via environment variables.
*/
const config = {
/**
* Hostname or IP address of the target server.
* @type {string}
*/
host: process.env.APP_HOST || "localhost",
/**
* Port number the server listens on.
* @type {number}
*/
port: parseInt(process.env.APP_PORT, 10) || 3000,
/**
* Request timeout in milliseconds before giving up.
* @type {number}
*/
timeout: parseInt(process.env.APP_TIMEOUT, 10) || 5000,
/**
* Number of times to retry a failed request before throwing an error.
* @type {number}
*/
retries: parseInt(process.env.APP_RETRIES, 10) || 3,
/**
* Whether to enable verbose debu
… …and 57 more samples (across 3 prompt variants × 2 temperatures × 10 runs). Full data in the result JSON on GitHub.
GPT-5.4 — 60 samples click to expand
Write a JavaScript module that exports a config object with five fields: host, port, timeout, retries, and debug. Use realistic default values.
```javascript
const config = {
host: 'localhost',
port: 3000,
timeout: 5000,
retries: 3,
debug: false,
};
export default config;
``` Write a JavaScript module that exports a config object with five fields: host, port, timeout, retries, and debug. Use realistic default values.
```javascript
const config = {
host: 'localhost',
port: 3000,
timeout: 5000,
retries: 3,
debug: false,
};
export default config;
``` Write a JavaScript module that exports a config object with five fields: host, port, timeout, retries, and debug. Use realistic default values.
```javascript
const config = {
host: 'localhost',
port: 3000,
timeout: 5000,
retries: 3,
debug: false,
};
export default config;
``` …and 57 more samples (across 3 prompt variants × 2 temperatures × 10 runs). Full data in the result JSON on GitHub.
GPT-5.4 mini — 60 samples click to expand
Write a JavaScript module that exports a config object with five fields: host, port, timeout, retries, and debug. Use realistic default values.
```javascript
// config.js
export default {
host: "localhost",
port: 3000,
timeout: 5000,
retries: 3,
debug: false,
};
``` Write a JavaScript module that exports a config object with five fields: host, port, timeout, retries, and debug. Use realistic default values.
```js
// config.js
export default {
host: "localhost",
port: 3000,
timeout: 5000, // milliseconds
retries: 3,
debug: false
};
``` Write a JavaScript module that exports a config object with five fields: host, port, timeout, retries, and debug. Use realistic default values.
```javascript
// config.js
const config = {
host: "localhost",
port: 3000,
timeout: 5000, // ms
retries: 3,
debug: false,
};
export default config;
```
If you want, I can also provide a CommonJS version (`module.exports = config`). …and 57 more samples (across 3 prompt variants × 2 temperatures × 10 runs). Full data in the result JSON on GitHub.
Gemini 2.5 Pro — 60 samples click to expand
Write a JavaScript module that exports a config object with five fields: host, port, timeout, retries, and debug. Use realistic default values.
Of course! Here is a JavaScript module that exports a configuration object with realistic default values.
This example uses the standard ES Module (`export`/`import`) syntax.
### `config.js`
```javascript
/**
* @file Application configuration.
* @description Exports a configuration object with default settings for the application.
* These values can be overridden by environment variables or other configuration methods.
*/
/**
* @typedef {object} AppConfig
* @property {string} host - The hostname or IP address to connect to.
* @property {number} port - The port number to connect to.
* @property {number} timeout - The request timeout in milliseconds.
* @property {number} retries - The number of times to retry a failed request.
* @property {boolean} debug - A flag to enable or d
… Write a JavaScript module that exports a config object with five fields: host, port, timeout, retries, and debug. Use realistic default values.
Of course. Here is a JavaScript module that exports a configuration object with realistic default values.
This example uses the modern ES Modules (`export`/`import`) syntax, which is standard in modern JavaScript development for both browsers and Node.js.
### `config.js`
```javascript
/**
* @file Application configuration.
* @description Exports a configuration object with default settings for the application.
* These values are typically used for connecting to a service or an API.
*/
/**
* @typedef {object} AppConfig
* @property {string} host - The hostname or IP address of the server to connect to.
* @property {number} port - The port number on the host.
* @property {number} timeout - The request timeout in milliseconds.
* @property {number} retries - The number of times to
… Write a JavaScript module that exports a config object with five fields: host, port, timeout, retries, and debug. Use realistic default values.
Of course. Here is a JavaScript module that exports a configuration object with realistic default values.
This example uses the modern ES Modules (`export`/`import`) syntax, which is standard in modern JavaScript development for both browsers and Node.js.
### `config.js`
```javascript
/**
* @file Application configuration.
* @description Exports a configuration object with default settings for the application.
* These values are typically used for connecting to a service or an API.
*/
/**
* @typedef {object} AppConfig
* @property {string} host - The hostname or IP address of the server to connect to.
* @property {number} port - The port number on the host.
* @property {number} timeout - The request timeout in milliseconds.
* @property {number} retries - The number of times to
… …and 57 more samples (across 3 prompt variants × 2 temperatures × 10 runs). Full data in the result JSON on GitHub.
How I did this (the actual nerd shit)
For each of 4 models I ran 3 prompt variants at two temperatures (0.0 and 0.7), 10 runs each — 240 code samples total, cost $2.03.
Each output got fed through a fight-specific regex classifier.
For trailing-commas-js the classifier looks for the specific signal in the output
(see the source — there's one function per fight, ~30 lines each).
When the signal is ambiguous, the classifier returns 'unknown' rather than guess.
Each model's vote = its modal classification across 60 runs. Confidence = Wilson 95% CI. Verdict = majority across models (ties reported as ties). Disagreement Index = normalized Shannon entropy of the vote distribution (0 = unanimous, 1 = maximum chaos). Leaderboard sorts by this.
The pundit quotes come from a follow-up call after the votes are in — each model gets the full tally and a per-model judgy prompt. I never edit the quotes.
Full walkthrough: the methodology page. Source: GitHub.
Open a PR with a new fight. I'll run it across all four models, write up the verdict, and add your name to the byline.
Submit via PR →