JavaScript Reference/Javascript Properties/POSITIVE INFINITY — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 08:22, 26 мая 2010
"POSITIVE_INFINITY" Example
<html>
<body>
<button onclick="alert(Number.MAX_VALUE);">MAX_VALUE</button>
<button onclick="alert(Number.MIN_VALUE);">MIN_VALUE</button>
<button onclick="alert(Number.NEGATIVE_INFINITY);">NEGATIVE_INFINITY</button>
<button onclick="alert(Number.POSITIVE_INFINITY);">POSITIVE_INFINITY</button>
</body>
</html>
"POSITIVE_INFINITY" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |Number |
+----------------+--------------------------------------------------------------+
"POSITIVE_INFINITY" Syntax and Note
Note:
Read-only property.
A constant that returns infinity.
Syntax:
Number.POSITIVE_INFINITY