[X]

MIN_VALUE Is Positive

luljs still works

Number.MIN_VALUE is greater than zero.

In 2026: Still works, and the name is the trap. Number.MIN_VALUE is the smallest positive number the language can represent, around 5e-324, not the most negative number. The most negative is -Number.MAX_VALUE. So Number.MIN_VALUE > 0 is true.

Where it came from: Number.MIN_VALUE is the smallest representable positive value, not the most negative, as MDN spells out. MDN

<script>
document.write('<p><code>Number.MIN_VALUE</code> is <b>' + Number.MIN_VALUE + '</b></p>');
document.write('<p><code>Number.MIN_VALUE > 0</code> is <b>' + (Number.MIN_VALUE > 0) + '</b></p>');
document.write('<p>The most negative number is <code>-Number.MAX_VALUE</code>, not MIN_VALUE.</p>');
</script>
sandboxed demo · breaks nothing but itselfrestart

More in luljs

all 63 in luljs › · the whole library ›