Research

Which Bugs Are Hardest to Spot?

Every day LoWisa gives everyone the same short JavaScript program with one planted bug, and three tries to tap the line it is on. From 3 September 2026 to 15 November 2026 the puzzle was played 1,244 times on 70 days. We looked at which bugs people found and which they missed.

The short answer: a bug that looks wrong is almost always found. A bug that still reads as working code is missed about 6 times as often.

Updated 2026-11-16

The headline numbers

What happenedWhat tapping at random would give
Plays1,244
Found the bug within three tries1,183 (95.1%)83%
Missed it after three tries61 (4.9%)17%
Tries used, on average1.542.17

The programs are three to seven lines long. With three tries on a three-line program nobody can miss, so the column on the right shows what blind tapping would score on the same programs. Players did clearly better than chance, and the interesting part is which bugs they still missed.

Bugs that look wrong, and bugs that look fine

On programs of four lines or more, where a miss is possible, the planted bugs fall into three groups.

Kind of bugExample of the broken linePlaysMissed
Looks wrong: a misspelled name, a missing closing parenreturn list[list.lenght - 1];1343 (2.2%)
Looks fine: a missing return, a variable never declared, a minus for a plussum = 0;, best;, return h - "h " + m + "m";35845 (12.6%)
A missing opening brace on the function linefunction total(items)6713 (19.4%)

A misspelled name stops the eye. sum = 0; does not: it is a complete, tidy statement, and outside strict mode JavaScript even runs it. best; on its own line is legal too. It simply throws the answer away. These are the bugs that pass a quick read.

Every kind of bug, in order of difficulty

Bug plantedDaysPlaysFoundTries used
A missing opening brace108684.9%1.92
Minus where plus belongs98086.3%1.70
A variable never declared1224592.7%1.44
A missing return2032295%1.54
A misspelled name1011799.1%1.46
A missing closing paren635799.4%1.51
Off by one (< for <=)226100%1.35
One equals sign where a comparison belongs111100%1.27

Read the small rows with care: a kind planted on one or two days says little on its own.

Where the bug sits matters

The bug was onPlaysFoundTries used
The first line7483.8%1.97
A line in the middle86794.6%1.49
The last line30399.3%1.57

A bug on the first line was the hardest to find. The first line of these programs is usually the function's own header, and people start reading for mistakes below it.

Length of the programPlaysFoundRandom tapping would find
3 lines685100%100%
4 lines24698%75%
5 lines11182%60%
6 lines7694.7%50%
7 lines12674.6%43%

Longer programs were missed more often, as expected, and at every length players beat chance.

The five hardest days

DayProgramThe broken lineShould beFound it
21 September 2026Minutes to hours (5 lines)return h - "h " + m + "m";return h + "h " + m + "m";9 of 15
20 September 2026Cheapest item (7 lines)pick = items[0];let pick = items[0];10 of 14
5 November 2026Find the max (7 lines)best;return best;13 of 18
6 October 2026Total of a cart (7 lines)sum = 0;let sum = 0;22 of 28
28 September 2026Grade (5 lines)"C";return "C";16 of 20

All five are bugs that still read as valid code.

What this means for anyone who writes or reviews code

  • Do not trust a line because it looks finished. Ask what each line gives back or changes. A line that does neither is suspect.
  • Read the first line too. The header of a function is code, and it breaks like code.
  • Check every operator on purpose. A minus for a plus is one character and reads as intended.
  • Follow the value to the end. Where is the answer made, and is it returned? Most of the missed bugs lost a value on the way out.
  • Let tools catch what looks wrong, and spend your attention on what looks fine. Most editors flag misspelled names and unbalanced brackets. Nothing flags a calculation that subtracts where it should add.

This matters more now that much code is written by AI and read by people: generated code is tidy, and tidy is exactly what these missed bugs look like. See Understand AI-generated code.

How the numbers were made, and their limits

  • What was counted. For each day: how many people played, how many found the bug within three tries, and the tries used. These are daily totals. No individual's result was looked at.
  • The programs. 30 short JavaScript programs, three to seven lines. Each day's program and bug are chosen by a fixed rule from the date, the same for everyone.
  • Who played. People using the LoWisa phone app, most of them learning to code. This is not a sample of professional developers, and it includes the LoWisa team's own plays.
  • One busy week. 251 of the plays were on a single day, 9 October 2026, during a community contest. Without that day the share who found the bug is 93.9%.
  • Small numbers. 61 misses in total. The groups differ clearly, but a figure such as "19.4%" rests on 67 plays. Treat the order as the finding, not the decimals.
  • Tapping is easier than fixing. Players only had to point at the line. Finding the cause in a real codebase is harder.

You may quote these figures with a link to this page.

Try today's bug

The puzzle is free to play in the browser: Bug of the day. One program, one planted bug, three tries.

Frequently asked questions

Which kind of bug was missed most often?

A missing opening brace on the function's first line (missed in 19.4% of 67 plays on programs of four lines or more), then bugs that still read as valid code: a missing return, an undeclared variable, a minus for a plus (12.6% of 358 plays).

Which kind of bug was found most easily?

Bugs that look wrong: a misspelled name or a missing closing paren. On programs of four lines or more they were missed in 3 of 134 plays.

How many plays is this based on?

1,244 plays on 70 days, from 3 September 2026 to 15 November 2026.

Get better at reading code

The first level of every course is free. LoWisa is on Google Play and the App Store.