159k views
1 vote
Which property of the Number object returns the largest positive value that JavaScript can represent?

MIN_VALUE

MAX_VALUE

POSITIVE_INFINITY

NEGATIVE_INFINITY

User Gregg Lind
by
5.5k points

2 Answers

5 votes

Answer:

POSITIVE_INFINITY

User Dannark
by
6.2k points
5 votes

Answer:

MAX_VALUE

Step-by-step explanation:

Number.MAX_VALUE represents the maximum possible value that javascript can represent. Its value can be determined using the following code segment:

<script>

var x = Number.MAX_VALUE;

alert(x);

</script>

This will display a value of 1.7976931348623157e+308 .

Similarly Number.MIN_VALUE represents the minimum value that can be handled by javascript. Its value is 5e-324.

User Metamatt
by
5.7k points