★ Petty Evals
formatting

Semicolons in JavaScript?

SEMICOLONS
4 semicolons

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.

  1. Write a JavaScript function that computes the factorial of a non-negative integer.
  2. Write a JavaScript function that takes a string and returns its word count.
  3. Write a JavaScript function that fetches a URL with the built-in fetch and returns the parsed JSON.

Who said what

Claude Sonnet 4.6
claude-sonnet-4-6
SEMICOLONS
100% confidence (95% CI: 94–100%)
GPT-5.4
gpt-5.4
SEMICOLONS
98% confidence (95% CI: 91–100%)
GPT-5.4 mini
gpt-5.4-mini
SEMICOLONS
100% confidence (95% CI: 94–100%)
Gemini 2.5 Pro
gemini-2.5-pro
SEMICOLONS
100% confidence (95% CI: 94–100%)

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.

Claude Sonnet 4.6
voted SEMICOLONS

“If you're writing JavaScript without semicolons and trusting ASI to save you, you deserve every 3am production bug where a parenthesis on a new line silently swallows your entire next statement.”

GPT-5.4
voted SEMICOLONS

“If you pick NO SEMICOLONS in JavaScript, you are outsourcing correctness to ASI like a hobbyist clown and acting surprised when newline edge cases bite your code.”

GPT-5.4 mini
voted SEMICOLONS

“ASI-lovers who skip semicolons are just volunteering for Automatic Semicolon Insertion bugs; semicolons make JavaScript unambiguous, readable, and not a haunted house.”

Gemini 2.5 Pro
voted SEMICOLONS

“Omitting semicolons isn't a "style choice"; it's willfully letting the notoriously fickle Automatic Semicolon Insertion guess when your statements are supposed to end.”

Show me the actual code (240 samples)
Claude Sonnet 4.6 — 60 samples click to expand
variant 0 · temp 0 · run 0 · → semicolons
Prompt

Write a JavaScript function that computes the factorial of a non-negative integer.

Response (first 800 chars)
## Factorial Function in JavaScript

### Recursive Implementation

```javascript
/**
 * Computes the factorial of a non-negative integer using recursion.
 * @param {number} n - A non-negative integer
 * @returns {number} The factorial of n
 * @throws {Error} If n is negative or not an integer
 */
function factorial(n) {
  if (!Number.isInteger(n) || n < 0) {
    throw new Error("Input must be a non-negative integer");
  }

  if (n === 0 || n === 1) {
    return 1;
  }

  return n * factorial(n - 1);
}
```

### Iterative Implementation

```javascript
/**
 * Computes the factorial of a non-negative integer using iteration.
 * @param {number} n - A non-negative integer
 * @returns {number} The factorial of n
 * @throws {Error} If n is negative or not an integer
 */
function factorialIterative
…
variant 0 · temp 0 · run 1 · → semicolons
Prompt

Write a JavaScript function that computes the factorial of a non-negative integer.

Response (first 800 chars)
## Factorial Function in JavaScript

### Recursive Implementation

```javascript
/**
 * Computes the factorial of a non-negative integer.
 * @param {number} n - A non-negative integer
 * @returns {number} The factorial of n
 * @throws {Error} If n is negative or not an integer
 */
function factorial(n) {
  if (!Number.isInteger(n) || n < 0) {
    throw new Error("Input must be a non-negative integer");
  }

  if (n === 0 || n === 1) {
    return 1;
  }

  return n * factorial(n - 1);
}
```

### Iterative Implementation

```javascript
/**
 * Computes the factorial of a non-negative integer (iterative approach).
 * @param {number} n - A non-negative integer
 * @returns {number} The factorial of n
 * @throws {Error} If n is negative or not an integer
 */
function factorialIterative(n) {
  if 
…
variant 0 · temp 0 · run 2 · → semicolons
Prompt

Write a JavaScript function that computes the factorial of a non-negative integer.

Response (first 800 chars)
## Factorial Function in JavaScript

### Recursive Implementation

```javascript
/**
 * Computes the factorial of a non-negative integer.
 * @param {number} n - A non-negative integer
 * @returns {number} The factorial of n
 * @throws {Error} If n is negative or not an integer
 */
function factorial(n) {
  if (!Number.isInteger(n) || n < 0) {
    throw new Error("Input must be a non-negative integer");
  }

  if (n === 0 || n === 1) {
    return 1;
  }

  return n * factorial(n - 1);
}
```

### Iterative Implementation

```javascript
/**
 * Computes the factorial of a non-negative integer (iterative approach).
 * @param {number} n - A non-negative integer
 * @returns {number} The factorial of n
 * @throws {Error} If n is negative or not an integer
 */
function factorialIterative(n) {
  if 
…

…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
variant 0 · temp 0 · run 0 · → semicolons
Prompt

Write a JavaScript function that computes the factorial of a non-negative integer.

Response (first 800 chars)
```javascript
function factorial(n) {
  if (!Number.isInteger(n) || n < 0) {
    throw new Error("Input must be a non-negative integer");
  }

  if (n === 0 || n === 1) {
    return 1;
  }

  return n * factorial(n - 1);
}
```

Example:
```javascript
console.log(factorial(5)); // 120
```
variant 0 · temp 0 · run 1 · → semicolons
Prompt

Write a JavaScript function that computes the factorial of a non-negative integer.

Response (first 800 chars)
```javascript
function factorial(n) {
  if (!Number.isInteger(n) || n < 0) {
    throw new Error("Input must be a non-negative integer");
  }

  if (n === 0 || n === 1) {
    return 1;
  }

  return n * factorial(n - 1);
}
```

Example:
```javascript
console.log(factorial(5)); // 120
```
variant 0 · temp 0 · run 2 · → semicolons
Prompt

Write a JavaScript function that computes the factorial of a non-negative integer.

Response (first 800 chars)
```javascript
function factorial(n) {
  if (n < 0 || !Number.isInteger(n)) {
    throw new Error("Input must be a non-negative integer");
  }

  if (n === 0 || n === 1) {
    return 1;
  }

  return n * factorial(n - 1);
}
```

Example:
```javascript
console.log(factorial(5)); // 120
```

…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
variant 0 · temp 0 · run 0 · → semicolons
Prompt

Write a JavaScript function that computes the factorial of a non-negative integer.

Response (first 800 chars)
```javascript
function factorial(n) {
  if (n < 0) {
    throw new Error("Factorial is not defined for negative numbers.");
  }

  let result = 1;
  for (let i = 2; i <= n; i++) {
    result *= i;
  }
  return result;
}
```

Example:

```javascript
console.log(factorial(5)); // 120
console.log(factorial(0)); // 1
```
variant 0 · temp 0 · run 1 · → semicolons
Prompt

Write a JavaScript function that computes the factorial of a non-negative integer.

Response (first 800 chars)
```javascript
function factorial(n) {
  if (n < 0) {
    throw new Error("Factorial is not defined for negative numbers.");
  }
  if (n === 0 || n === 1) {
    return 1;
  }
  let result = 1;
  for (let i = 2; i <= n; i++) {
    result *= i;
  }
  return result;
}
```

Example usage:

```javascript
console.log(factorial(5)); // 120
console.log(factorial(0)); // 1
```
variant 0 · temp 0 · run 2 · → semicolons
Prompt

Write a JavaScript function that computes the factorial of a non-negative integer.

Response (first 800 chars)
```javascript
function factorial(n) {
  if (n < 0) {
    throw new Error("Factorial is not defined for negative numbers");
  }
  if (n === 0 || n === 1) {
    return 1;
  }

  let result = 1;
  for (let i = 2; i <= n; i++) {
    result *= i;
  }
  return result;
}
```

Example:

```javascript
console.log(factorial(5)); // 120
console.log(factorial(0)); // 1
```

…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
variant 0 · temp 0 · run 0 · → semicolons
Prompt

Write a JavaScript function that computes the factorial of a non-negative integer.

Response (first 800 chars)
Of course! Here are a few ways to write a JavaScript function to compute the factorial of a non-negative integer, along with detailed explanations.

The factorial of a non-negative integer `n`, denoted by `n!`, is the product of all positive integers less than or equal to `n`.
-   `5! = 5 * 4 * 3 * 2 * 1 = 120`
-   By mathematical convention, the factorial of 0 is `1` (i.e., `0! = 1`).

### 1. Iterative Approach (Using a Loop)

This is the most common and generally the most efficient approach in JavaScript. It uses a simple `for` loop to multiply the numbers together.

```javascript
/**
 * Computes the factorial of a non-negative integer using an iterative approach.
 *
 * @param {number} n The non-negative integer.
 * @returns {number} The factorial of n.
 * @throws {Error} If the input is
…
variant 0 · temp 0 · run 1 · → semicolons
Prompt

Write a JavaScript function that computes the factorial of a non-negative integer.

Response (first 800 chars)
Of course! Here are a few ways to write a JavaScript function to compute the factorial of a non-negative integer, starting with the most common approach and then exploring alternatives.

### 1. The Iterative Approach (Using a Loop)

This is the most straightforward and often the most performant method in JavaScript. It uses a simple `for` loop to multiply the numbers together.

```javascript
/**
 * Computes the factorial of a non-negative integer using an iterative approach.
 *
 * @param {number} n The non-negative integer.
 * @returns {number} The factorial of n.
 * @throws {Error} If the input is a negative number or not an integer.
 */
function factorialIterative(n) {
  // Factorial is not defined for negative numbers.
  if (n < 0) {
    throw new Error("Factorial is only defined for no
…
variant 0 · temp 0 · run 2 · → semicolons
Prompt

Write a JavaScript function that computes the factorial of a non-negative integer.

Response (first 800 chars)
Of course! Here are a few ways to write a JavaScript function to compute the factorial of a non-negative integer, starting with the most common and recommended approach.

### 1. Iterative Approach (Using a Loop)

This is the most straightforward and often the most performant method in JavaScript. It avoids the risk of stack overflow that can occur with recursion for large numbers.

```javascript
/**
 * Computes the factorial of a non-negative integer using an iterative approach.
 *
 * @param {number} n The non-negative integer.
 * @returns {number} The factorial of n.
 * @throws {Error} If the input is a negative number or not an integer.
 */
function factorialIterative(n) {
  // 1. Input validation
  if (n < 0 || !Number.isInteger(n)) {
    throw new Error("Input must be a non-negative in
…

…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.64.

Each output got fed through a fight-specific regex classifier. For semicolons-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.

Got a pettier debate?

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 →