JavaScript _________ when there is an indefinite or an infinite value during an arithmetic computation.
JavaScript _________ when there is an indefinite or an infinite value during an arithmetic computation. Correct Answer Displays “Infinity”
When the result of a numeric operation is larger than the largest representable number (overflow), JavaScript prints the value as Infinity. Similarly, when a negative value becomes larger than the largest representable negative number, the result is negative infinity. The infinite values behave as you would expect: adding, subtracting, multiplying, or dividing them by anything results in an infinite value (possibly with the sign reversed).
মোঃ আরিফুল ইসলাম
Feb 20, 2025