A SMALL QUESTION. AN ENTIRE WEBSITE.

How do I calculate if an integer is odd?

Divide it by two. If there’s one left over, it’s odd. That’s the answer. We made a whole website anyway.

Give me the explanation

For the curious, the coders,
and the spectacularly overthinking.

THE ODD / EVEN CALCULATOR

Negative? Huge? Still an integer. Up to 1,000 digits.

THE VERDICTOdd.

127 = 2 × (63) + 1

The last digit is 7. One is left over when you make pairs.

TRY
THE ONE-LINE ANSWERn % 2 !== 0

In JavaScript, for a validated integer.
Mind the edge cases ↗

PICK YOUR LEVEL OF CURIOSITY

There’s a little
more to odd.

The basics are simple. The details are interesting.
Choose your rabbit hole.

THE EXPERIMENT GOT A LITTLE OUT OF HAND

Or you could
ask an AI.

Meet is-jodd. One network request to answer a question you could solve with a single digit. We measured it. We published the results.

Enter the Jev lab
861B

of published JavaScript.
A very small package of very big ideas.

Runtime size. Full npm archive: 2,870 B.Read the actual benchmarks ↗

ONE LAST THING

Zero is even.
You’re welcome.

Yes, really. Here’s why ↗