hi
here are types of errors in JS:
Although the exception you throw may be a value of any type, often more effective is to use exceptions defined by JavaScript.
There are following build-in error types:
Error,
ReferenceError,
SyntaxError,
RangeError,
TypeError,
InternalError,
EvalError,
URIError.
and I understand them but can anyone explain me what are silent errors, I found that they are errors for which user doesnt get notified but cant find example of silent error on google, can someone try to explain me or give example of silent error,
tnx
Silent errors in JavaScript refer to errors that don’t trigger any kind of reporting and are usually indicated by function return values or can be detected by comparing results to expected values. These errors can be difficult to detect and fix, as they may not be immediately obvious. Common sources of silent errors include incorrect assumptions, incorrect inputs, incorrect data types, and incorrect API usage. It is important to use proper error handling techniques such as try/catch blocks to detect and handle silent errors in JavaScript. Additionally, it may be helpful to use a linter to check for common errors, such as typos, or use a tool such as JSLint to detect potential errors in code.
Found now that silent errors on extreme scale where machines can perform astronomically many operations per second silent errors threaten the validity of computed results, that tells me that if you type wrong number somewhere that can be silent error because output would be wrong, am i right?? thank you for your explanation you said that silent errors include incorrect assumptions , incorrect inputs and incorrect data types, that is enough for now for me , thank You very much
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.