JavaScript Reference/Javascript Properties/MAX VALUE

Материал из Web эксперт
Перейти к: навигация, поиск

"MAX_VALUE" 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>



"MAX_VALUE" is applied to

+----------------+--------------------------------------------------------------+
| Applied_To     |Number                                                        |
+----------------+--------------------------------------------------------------+



"MAX_VALUE" Syntax and Note

Note:
Read-only property. 
The largest number the system that is less than infinity.
    
Syntax:
    
Number.MAX_VALUE