TypeErrorTypeError
A value is not of the expected type. This is the most common JavaScript error, occurring when an operation encounters a value of the wrong type.
ReferenceError: Invalid left-hand side in assignmentAn assignment was attempted to something that cannot be assigned to.
You tried to assign a value to something that is not a valid assignment target, such as a literal (5 = x), a function call result, or using = instead of == in a conditional expression.
Check that the left side of the assignment is a variable, property, or destructuring pattern. If you meant comparison, use === instead of =. Verify you are not accidentally assigning to a function call.
5 = x; // ReferenceError: Invalid left-hand side in assignmentTypeErrorA value is not of the expected type. This is the most common JavaScript error, occurring when an operation encounters a value of the wrong type.
CORS Error: No Access-Control-Allow-OriginThe browser blocked a cross-origin request because the server did not include the required CORS headers.
ERR_INSPECTOR_ALREADY_ACTIVATEDThe Node.js inspector (debugger) was activated more than once.
SyntaxError: Cannot use import statement outside a moduleES module import syntax was used in a file that is not treated as a module.
ENOSPCThe disk is full or the inode table is exhausted.
SyntaxError: await is only valid in async functionsThe await keyword was used outside of an async function.