js
Number.NEGATIVE_INFINITYMath.min() من غير arguments بترجّع Infinity الموجبة، وMath.max() بترجّع السالبة — لأنهم محايدين في المقارنة.
البرهان
js
console.log(-1 / 0, Number.NEGATIVE_INFINITY === -Infinity, Math.max(), Math.min());النتيجة
-Infinity true -Infinity Infinity