0 votes
in JavaScript by
When there is an indefinite or an infinite value during an arithmetic computation in a program, then JavaScript prints______.

a) Prints an exception error

b) Prints an overflow error

c) Displays "Infinity"

d) Prints the value as such

1 Answer

0 votes
by

Answer: C

Reason: In the case, where the result of any arithmetic expression is beyond the largest represent-able number,JavaScript prints the infinity. Similarly, if the result of any numerical operation is beyond the largest negative number, JavaScript prints negative infinity.

Related questions

0 votes
asked Oct 8, 2022 in JavaScript by rajeshsharma
0 votes
asked Jun 9, 2022 in JavaScript by sharadyadav1986
...