JavaScript Objects The Number Object- POSITIVE_INFINITY - Javascript Objects

What is JavaScript Number - POSITIVE_INFINITY?

It is a special numeric value that represents any value that is greater than Number.MAX_VALUE. This value is represented as "Infinity". It is similar as an infinity in its mathematical behavior. For example, anything multiplied by POSITIVE_INFINITY is POSITIVE_INFINITY, and anything divided by POSITIVE_INFINITY is zero.

As POSITIVE_INFINITY is a constant, it is a read-only property of Number.


Go through the following syntax to use POSITIVE_INFINITY.

var val = Number.POSITIVE_INFINITY;


Observe the following example to learn how use POSITIVE_INFINITY.

Value of bigNumber : Infinity

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd Protection Status

Javascript Objects Topics