JavaScript POSITIVE_INFINITY Property
JavaScript Number Object
Definition and Usage
The POSITIVE_INFINITY property represents infinity, returned on overflow.
Syntax
| Number.POSITIVE_INFINITY; |
Browser Support

The POSITIVE_INFINITY property is supported in all major browsers.
Example
Example
Create overflow:
<script type="text/javascript">
var x=(Number.MAX_VALUE)*2;
if (x==Number.POSITIVE_INFINITY)
{
document.write(x);
}
</script>
|
The output of the code above will be:
Try it yourself »
|
JavaScript Number Object
|