EvalErrorEvalError
An error related to the global eval() function. This error is rarely encountered in modern JavaScript.
SyntaxError: Missing initializer in const declarationA const variable was declared without an initial value.
Const variables must be initialized at the time of declaration because they cannot be reassigned later. Writing 'const x;' without a value is invalid syntax.
Provide an initial value: const x = value. If you need to declare without initializing, use let instead: let x; x = value;. For objects or arrays, initialize with empty values: const obj = {};
const x; // SyntaxError: Missing initializer in const declarationEvalErrorAn error related to the global eval() function. This error is rarely encountered in modern JavaScript.
TypeError: Reduce of empty array with no initial valueArray.reduce() was called on an empty array without providing an initial value.
EPIPEAn attempt was made to write to a pipe or socket whose reading end has been closed.
TypeError: Cannot add property, object is not extensibleAn attempt was made to add a property to an object that has been made non-extensible.
TypeError: x is not iterableA value that is not iterable was used where an iterable was expected, such as in a for...of loop or spread operator.
TypeError: Cannot convert a Symbol value to a stringAn implicit conversion of a Symbol to a string was attempted, which is not allowed.