The TypeError object represents an error when an operation could not be performed, typically (but not exclusively) when a value is not of the expected type.
TypeError: "x" is not a function The JavaScript exception "is not a function" occurs when there was an attempt to call a value from a function, but the value is not actually a function.