Home » JavaScript » JavaScript Variables » Question
  1. Which of the following is not considered as an error in JavaScript?
    1. Missing of Bracket
    2. Syntax error
    3. Missing of semicolons
    4. Division by zero
    5. None of these
Correct Option: D

Division by zero is not an error in JavaScript: it simply returns infinity or negative infinity. There is one exception, however: zero divided by zero does not have a well defined value, and the result of this operation is the special not-a-number value, printed as NaN.



Your comments will be displayed only after manual approval.