JavaScript fun fact: Number.MIN_VALUE is NOT the smallest number!
🔹 Number.MIN_VALUE
represents the smallest positive number greater than 0 in JavaScript (≈ 5e-324
).
🔹 The actual smallest number is Number.NEGATIVE_INFINITY
, and the smallest finite number is -Number.MAX_VALUE
.
🔹 This often confuses developers who assume Number.MIN_VALUE
means the most negative number.
Did you know this? What other JavaScript quirks have surprised you?