Errors - Aimanizales/Javascript_learning GitHub Wiki

Error Objects:

TypeError An operation could not be performed, typically (but not exclusively) when a value is not of the expected type.

may be thrown when:

  • an operand or argument passed to a function is incompatible with the type expected by that operator or function; or
  • when attempting to modify a value that cannot be changed; or
  • when attempting to use a value in an inappropriate way.