0 votes
in JavaScript by
In the JavaScript, which one of the following is not considered as an error:

a) Syntax error

b) Missing of semicolons

c) Division by zero

d) Missing of Bracket

1 Answer

0 votes
by

Answer: C

Reason: Yes, you heard right that division of any integer by zero is not an error in the JavaScript. It just prints the infinity as a result. However, there is an exception in JavaScript, dividing zero with zero will not have any defined number/value so, the result of this specific operation is a special value "Not a Number" (or NaN) and printed as NaN.

Related questions

0 votes
asked Mar 21, 2021 in JavaScript by rajeshsharma
0 votes
asked Mar 20, 2021 in JavaScript by sharadyadav1986
...