MCQ Answer

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

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

निम्नलिखित में से किसे जावास्क्रिप्ट में त्रुटि नहीं माना जाता है?
Topic : JS Introduction

A. Syntax error

B. Accessing a variable or function that is not defined

C. Division by zero

D. None of these




Correct Answer is :

C. Division by zero



Explanation
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 welldefined value, and the result of this operation is the special not-a-number value, printed as NaN.
CCC Online Test 2021 CCC Practice Test Hindi Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Sarkari Exam Quiz