Tagged articles
4 articles
Page 1 of 1
ITPUB
ITPUB
Jun 27, 2025 · Fundamentals

Why Does num === num - 1 Sometimes Return True in JavaScript?

This article explains the special cases where the JavaScript expression num === num - 1 evaluates to true, covering Infinity, numbers beyond the safe integer range, how to detect unsafe values, and practical solutions using Number.isSafeInteger, BigInt, bignumber.js, and a custom big‑integer addition implementation.

Arbitrary PrecisionBIGINTInfinity
0 likes · 8 min read
Why Does num === num - 1 Sometimes Return True in JavaScript?
Model Perspective
Model Perspective
Oct 29, 2023 · Fundamentals

Why Cantor Said “Mathematics Is Free”: Exploring Infinity and Its Implications

Georg Cantor’s revolutionary set theory revealed that infinities come in different sizes, introduced the concept of cardinality, and inspired the famous Continuum Hypothesis, while his belief that mathematics is fundamentally free underscores the creative, language‑like nature of the discipline and its impact on modern modeling.

CantorInfinityMathematical Philosophy
0 likes · 9 min read
Why Cantor Said “Mathematics Is Free”: Exploring Infinity and Its Implications
JavaScript
JavaScript
May 20, 2021 · Frontend Development

Understanding JavaScript’s Math.max: Edge Cases and Array Tricks

This article explains how JavaScript’s Math.max function works, covering typical usage, single‑argument behavior, the surprising -Infinity result when called without arguments, and practical techniques for finding maximum values in arrays, including handling empty arrays.

ArrayInfinityJavaScript
0 likes · 3 min read
Understanding JavaScript’s Math.max: Edge Cases and Array Tricks