Which of the following is not considered as an error in JavaScript?

A Syntax error
B Missing of semicolons
C Division by zero
D Missing of Bracket

Correct Answer: Division by zero

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.

Related Questions

Which of the following is added to prefs.js when the console is automatically opened during JavaScript error?
Why shouldn’t JavaScript functions not be too long?
Which of the following is a way of embedding Client-side JavaScript code within HTML documents?

Next steps