You are here: Home / Topics / What are the types of errors in javascript?

What are the types of errors in javascript?

Filed under: JavaScript Interview Questions on 2022-08-06 09:35:56

There are two types of errors in javascript.

  1. Syntax error: Syntax errors are mistakes or spelling problems in the code that cause the program to not execute at all or to stop running halfway through. Error messages are usually supplied as well.
  2. Logical error: Reasoning mistakes occur when the syntax is proper but the logic or program is incorrect. The application executes without problems in this case. However, the output findings are inaccurate. These are sometimes more difficult to correct than syntax issues since these applications do not display error signals for logic faults.

About Author:
G
Geetam     View Profile
Hi, I am using MCQ Buddy. I love to share content on this website.