What are the steps of debugging?
What is a ReferenceError?
AReferenceErroroccurs when you attempt to use a variable or function that doesn’t exist.
What is a TypeError?
nullorundefinedTypeErrorconstvariable:What is a SyntaxError?
A SyntaxError occurs when the program does not use proper JS syntax.
What is the syntax for a catch statement?
try {
// Do something that might fail here and throw an exception.
} catch (error) {
// This code only runs if something in the try clause throws an exception.
// “error” contains the exception object.
} finally {
// This code always runs even if the above code throws an exception.
}
What conditions should be met before you use a catch statement?